-
Notifications
You must be signed in to change notification settings - Fork 199
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversion - Added option to set preferred request body content-type #803
Conversion - Added option to set preferred request body content-type #803
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We can add few unit tests as well to make sure functionality works as intended.
hi @VShingala I added the 4th option and tests to make the sure the scenario's are covered. |
@VShingala All changes are made and tests are ✅, expect for the "external:false", see #803 (comment) |
Perhaps I can extend the tests with one without external and another with all options. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changes looks good!
Linked to #801 and #802
Currently the request body used for creating the Postman request is a fixed content-type mapping, where the following logic applies:
This PR adds the option to set a preferred content-type as request body, when there are multiple content-types defined in the request body of OpenAPI
Example OpenAPI:
Default Result, with no
preferredRequestBodyType
option defined:Result, with
preferredRequestBodyType
option defined asraw
: