joolfe / postman-to-openapi

🛸 Convert postman collection to OpenAPI
MIT License
605 stars 105 forks source link

Fixed crash because attempting to query undefined object #191

Closed hbina closed 2 years ago

hbina commented 2 years ago

Simply checks that url is not undefined first.

joolfe commented 2 years ago

As described in the schemas of collection v2.0 an v2.1 here https://schema.postman.com/, URL cannot by null/undefined in a postman collection, could be a empty string but the key 'url' should exist so this is not need it.

Best regards