Open
Description
Is there an existing issue for this?
- I have searched the existing issues
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