joolfe / postman-to-openapi

🛸 Convert postman collection to OpenAPI
MIT License
575 stars 99 forks source link

TypeError: Cannot read properties of null (reading 'trim') #198

Closed mike-hampton-float closed 2 years ago

mike-hampton-float commented 2 years ago

Trying to convert a specific (zoho) api. https://drive.google.com/file/d/1mHIiGEkppfonKr_zTrxSESn43-IXidfv/view?usp=sharing

Command used: P2o Zoho_CRM_REST_APIs.postman_collection.json -f ZOHO_CRM_OPENAPI.YML -o options.json

With options.json blank - {}

joolfe commented 2 years ago

Fixed in version 4.2.1, the response body with value null was not supported but is part of the specs so now is added.

Take into account that the collection has incorrect json bodies that will still fail but is not a library issue, is a postman collection issue.