You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm having an issue where no matter what SwaggerResponse status codes I include, or XML documentation I provide, the produced Swagger JSON contains a 200 Response. Is there a way around this?
Here is a modification of the provided example to return a 201 Created response rather than a 200 OK.
We are facing the same issue and there would be an attribute available on the Swashbuckle package: [SwaggerResponseRemoveDefaults]
Would it be possible to make it in this nuget available as well?
I'm having an issue where no matter what
SwaggerResponse
status codes I include, or XML documentation I provide, the produced Swagger JSON contains a 200 Response. Is there a way around this?Here is a modification of the provided example to return a 201 Created response rather than a 200 OK.
Swagger Generation Function;
And here is the generated Swagger content;
The text was updated successfully, but these errors were encountered: