Description
Is there an existing issue for this?
- I have searched the existing issues
Describe the bug
I would expect that VersionedMetadataController
would appear naturally into the swagger's configuration. (like MetadataController
does if using Microsoft.Aspnetcore.Mvc.Versioning
.
If you try both of the example app with swagger, the /api/
and /api/$metadata
don't appear in the documentation.
It would seem to me that it would be "normal" to have it automatically, don't you think ?
We could of course add a IDocumentFilter
to add it manually (and it's working correctly like that) but i feel that most dev would want this ?
Thanks for you amazing support !
Expected Behavior
No response
Steps To Reproduce
run examples/AspNetCore/OData/ODataOpenApiExample
and go to swagger and see that the $metadata
api endpoint is not in the documentation but is working correctly.
Exceptions (if any)
No response
.NET Version
6.0.402
Anything else?
ASP.NET Core version: 6.0
Asp.Versioning.OData.ApiExplorer: 6.1.0
Microsoft.AspNetCore.OData: 8.0.10, 8.0.11
Swashbuckle.AspNetCore: 6.3.0, 6.4.0