joolfe / postman-to-openapi

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

TypeError: Cannot destructure property 'key' of 'object null' as it is null. #226

Closed Mehrdad-Dadkhah closed 2 years ago

Mehrdad-Dadkhah commented 2 years ago

Hi, Thanks for your pay attention

p2o -v
2.7.0
node -v
v16.14.0
p2o postman_collection.json -f open-api.json
TypeError: Cannot destructure property 'key' of 'object null' as it is null

my postman collection is (only rename ext to txt to attach it here):

postman_collection.txt

joolfe commented 2 years ago

Hi @Mehrdad-Dadkhah,

Your collection is not correct when i try to import in postman i get that error: "Error while importing Postman Collection v2.1: Cannot read properties of null (reading 'key')"

Screenshot 2022-09-24 at 12 54 27

Best regards.