postmanlabs / swagger2-to-postman

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

Invalid value written to definitions.request.data element for body parameters #23

Open gdereese opened 7 years ago

gdereese commented 7 years ago

In the case where creating a request element for an endpoint in an input Swagger document that has a body parameter, an invalid value is written to the definitions.request.data element in the output Postman collection for that endpoint.

According to the Postman v1 schema, only null or array values are valid for this element, but in these cases a string value is written here corresponding to the description of the parameter from Swagger.

abhijitkane commented 7 years ago

@gdereese The transformer has been updated to fix this bug - https://www.npmjs.com/package/postman-collection-transformer. We'll soon be releasing updates to the swagger converter to support folder ordering too.

gdereese commented 7 years ago

Thanks for addressing this.

As for the fix to swagger2-to-postman, I submitted pull request #26; feel free to review it and see if that resolves the issue to your liking.