joolfe / postman-to-openapi

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

Output contains part of collection requests #215

Closed sommarnatt closed 1 year ago

sommarnatt commented 1 year ago

Hi, Thanks for a great project :+1:

I'm trying it out with a collection for my own API with 6 requests, 2 responses for each, using node 16, npm and the CLI. It outputs 3 out of 6 requests. (1st, 3rd, 5th). If I rearrange the requests in the collection json it will still just output the 1,3,5 th requests after conversion.

Anything specific in the collection I should look out for? Is there any kind of debug I can turn on?

joolfe commented 1 year ago

Hi @sommarnatt,

The only case that I remember that can cause to skip a request is if the URL is not valid

if (url === '' || url.raw === '') {
    return { valid: false }
  }

If you are using variables ensure that you turn on variable substitution to ensure that the URLs have the content when processed.

Also if you attach the collection here I can have a look.

Best Regards.

joolfe commented 1 year ago

due to inactivity