postman-to-openapi icon indicating copy to clipboard operation
postman-to-openapi copied to clipboard

Output contains part of collection requests

Open sommarnatt opened this issue 3 years ago • 1 comments

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?

sommarnatt avatar Sep 09 '22 16:09 sommarnatt

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 avatar Sep 17 '22 08:09 joolfe

due to inactivity

joolfe avatar Sep 24 '22 10:09 joolfe