joolfe / postman-to-openapi

🛸 Convert postman collection to OpenAPI
MIT License
596 stars 104 forks source link

Create OpenAPI from Folder in collection #156

Closed alexevansigg closed 2 years ago

alexevansigg commented 2 years ago

In my postman collection I have some folders which are used for Collection Runner / Newman execution. The contain duplicate API calls for different integration testing, it would be great if theres a flag to stipulate which folders are included in the conversion.

I can strip these out unwanted folders by pre-parsing the postman collection file with JQ but it's nice when its baked into your tool natively.

joolfe commented 2 years ago

Hi @alexevansigg,

In this case this feature is out of the scope of the library, the goal is to transform a postman collection into open API specs but things like filtering, sorting... Should be done in another place I think.

A possible solution for you is just to move to another collection this folders that you don't want to transform, I normally follow this approach, I maintain a collection with my API request with full descriptions and ready to use for customers and then other request in a separate collection with similar made but with a suffix like "utils"

Best regards