-
Notifications
You must be signed in to change notification settings - Fork 707
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
WithOpenApi() ignore Api versioning readers #1044
Comments
Unfortunately, depending on what you are doing and what you expect, some things will not work as expected. Ultimately, this is a design flaw (IMHO) with how The problem is that That is only the tip of the iceberg. API Versioning supports interleaving multiple versions on the same endpoint. That is not supported by You can set a lot of other metadata as long as you don't do it through Opening or commenting on issues in the ASP.NET Core repo is likely to get better traction than what I do on my own. Here's a few existing issues related to this area: |
@captainsafia it doesn't seems the OpenAPI improvements made the .NET 8 cut line. Is there an epic or plan to improve this area for .NET 9 - yet? |
@commonsensesoftware Hopefully, yes! Trying to dust of some prototypes and figure out a plan, ATM. |
I was using exactly this and did not understand why the documentation does not get generated properly. I removed |
Is there an existing issue for this?
Describe the bug
I'm encountering an issue with Swagger/OpenAPI documentation in my ASP.NET Core project, where I'm utilizing API versioning. When using WithOpenApi() method on my endpoints, Swagger documentation fails to generate correctly.
The problem occurs with Header or MediaType way of versioning.
Without WithOpenApi(), documentation for different API versions generates properly.
Expected Behavior
WithOpenApi() should allow for the correct generation of Swagger/OpenAPI documentation across different API versions.
Steps To Reproduce
Go and clone repo:
https://github.com/Grzesiek23/MinimalApiWithOpenApiProblem
Exceptions (if any)
No response
.NET Version
7 nad 8
Anything else?
No response
The text was updated successfully, but these errors were encountered: