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

OpenApi specification v3.0.0 support #125

Open
icnocop opened this issue Mar 8, 2023 · 1 comment
Open

OpenApi specification v3.0.0 support #125

icnocop opened this issue Mar 8, 2023 · 1 comment

Comments

@icnocop
Copy link

icnocop commented Mar 8, 2023

Hi.

Thank you for Swagger-Net.

If an API endpoint returns a different media type depending on the HTTP status code response, the generated swagger.json emits multiple "produces" elements and the ui only has one "Response content type" drop down list.

I expected the generated swagger.json to indicate the response media type for each HTTP status code response separately.
I expected the ui to have a drop down list for each HTTP status code response.

SwaggerNetExamples.zip

image

In this case, I expected the HTTP status code 200 response to only have "plain/text" and the HTTP status code 403 response to only have "problem/application+json".

I believe this requires generating the OpenApi specification schema to OpenApi 3.

Thank you.

@sNakiex
Copy link

sNakiex commented Nov 28, 2023

I would also like to see support for OpenApi 3.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants