Closed
Description
Describe the bug
ApiExplorer/ProducesResponseType exposes incorrect value when the return type is void. It seems to override any attempt to indicate that the response produces no results/body with ProblemDetails.
To Reproduce
Steps to reproduce the behavior:
- Using this version of ASP.NET Core 2.2
- Apply the following attribute to an ApiController:
[ProducesResponseType(typeof(void), (int)HttpStatusCode.Unauthorized) - ApiExplorer indicates the return type is ProblemDetails.
Expected behavior
ApiExplorer should say the return type is void.
Metadata
Metadata
Assignees
Labels
This issue has been fixedThis issue impacts approximately half of our customersIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesThis issue / pr will introduce a breaking change, when resolved / merged.This issue describes a behavior which is not expected - a bug.This label is used by an internal tool