postmanlabs / postman-app-support

Postman is an API platform for building and using APIs. Postman simplifies each step of the API lifecycle and streamlines collaboration so you can create better APIs—faster.
https://www.postman.com
5.82k stars 839 forks source link

openapi2postmanv2 produces the collection without #11460

Closed khazamov closed 1 year ago

khazamov commented 1 year ago

Is there an existing issue for this?

Describe the Issue

The new version of openapi2postmanv2 produces the data without enclosing it into "collection" key

Steps To Reproduce

  1. Download API https://api.criteo.com/2021-07/marketingsolutions/open-api-specifications.json

  2. Convert to collection: openapi2postmanv2 -s 2021-07___oas.json -o postman_2021-07.json -p -O folderStrategy=Tags,requestParametersResolution=Schema,optimizeConversion=false,stackLimit=50

  3. Observe the resulting file postman_2021-07.json .

The file can be imported via UI, but cannot be imported via API.

Screenshots or Videos

No response

Operating System

mac

Postman Version

10.0

Postman Platform

Postman App

Additional Context?

can be seen as a feature request too

DannyDainton commented 1 year ago

Hey @khazamov

Could you please raise this as an issue on this repo https://github.com/postmanlabs/openapi-to-postman/issues

As this is not a Postman app-related issue, I will close this for now.