Skip to content
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

Webapi-Swagger : Apply Global consumes and produces MIME types and support for overriding them #25

Open
kahlil29 opened this issue Apr 1, 2019 · 0 comments
Assignees
Labels
Webapi-Swagger All issues related to Webapi-swagger (generation of Webapi contracts from Swagger Docs)

Comments

@kahlil29
Copy link
Contributor

kahlil29 commented Apr 1, 2019

For the global consumes and produces present in _swaggerConsumes and _swaggerProduces respectively, we need to consider these types and set the types in the Contract correctly.

consumes -> RequestBody (in Contract)
produces -> ContentTypes (in Contract)

Also, in case any MIME Types are specified in the "local" definitions for Operations, we need to disregard the global values and only consider these locally defined MIME Types for that particular Operation.

@kahlil29 kahlil29 added the Webapi-Swagger All issues related to Webapi-swagger (generation of Webapi contracts from Swagger Docs) label Apr 1, 2019
@kahlil29 kahlil29 self-assigned this Apr 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Webapi-Swagger All issues related to Webapi-swagger (generation of Webapi contracts from Swagger Docs)
Projects
None yet
Development

No branches or pull requests

1 participant