Open PavloPaitak opened 6 months ago
What is the expected behavior?
Which media types are you expecting to be returned?
The [Produces]
attribute can usually be used to customise the behaviour.
@Havunen Expected behavior: To not see the OData media types for all existing apis that do not use OData.
@martincostello Yes, the [Produces] attribute can be used to customize it manually, but I would like to see OData media types in swagger only for APIs that use OData not all existing already when I add OData.
After adding OData with example configurations, and having standard REST APIs, Swagger shows OData medi types for each API and NSwag generates OData media types for each standard REST API. And after I use it as a Client lib it throws an exception.
Code:
Used: ASP Net Core Web Api .Net6