postmanlabs / swagger2-to-postman

Converter for swagger 2.0 JSON to Postman Collection
Apache License 2.0
120 stars 55 forks source link

folders_order element is not added/populated if output collection is to contain folders #25

Open gdereese opened 7 years ago

gdereese commented 7 years ago

When exporting a Postman collection containing folders in v1 format from the Postman UI, the exported JSON contains a folders_order property containing an array of folder UUIDs specifying their display order.

From this library, in the event that the Postman collection being generated will contains folders, this same folders_order element is not added or populated. This creates problems if the output from swagger2-to-postman is fed into postman-collection-transformer downstream to convert up to v2, as the requests will be dropped from the output v2 collection file upon conversion.

a85 commented 7 years ago

Thanks @gdereese. Reviewing this.

a85 commented 7 years ago

@abhijitkane Assigning this to you.

abhijitkane commented 7 years ago

@gdereese Can you share what Postman version you're using? Postman doesn't support the folders_order property yet.

Also, can you share output from swagger2-postman that you're feeding to the transformer?

gdereese commented 7 years ago

I am using the Chrome extension version 4.10.7.

Attached is a Postman Collection v1 file generated by version 1.1.6 of swagger2-to-postman. ctuit-postman-v1.json.txt

When exporting a v1 collection from the Postman Chrome extension of the above version, the JSON will include a folders_order element.