Generate Collection: OpenApi to Postman Collection

Hi, I’m currently making use of Convert from the openapi-to-postmanv2 package in a node script to generate postman collection from swagger v2.

The generation works fine, I just don’t want to include sample responses in the collection as its leading to a much larger file size and affecting being able to import the full collection.

Is there an option to prevent sample responses from being generated when using Converter.convert() to generate postman collection from swagger/openapi ?

The sample responses I am referring to :

I fixed this manually before the generation happens by just removing the responses in the swagger specification before the collection generation process

1 Like