I've got an ASP.NET Core 6.0 web app that uses versioned endpoints. I've selected to use the MediaTypeApiVersionReader
, which means the api version is passed in the accept header of the request.
I'm using nSwag v13.19.0 for the Swagger pipeline, and SwaggerUI to render the swagger UI.
The swagger UI page is rendering both versions of my API, but the MediaType dropdown on the swagger UI isn't include the selected version.
.
As a result of the missing version information, the swagger UI always executes the default version of the endpoint.
How can I configure Nswag to include the version number in the media type drop down so I can specify the correct version?