-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Closed
Labels
DoneThis issue has been fixedThis issue has been fixedaffected-mediumThis issue impacts approximately half of our customersThis issue impacts approximately half of our customersarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbreaking-changeThis issue / pr will introduce a breaking change, when resolved / merged.This issue / pr will introduce a breaking change, when resolved / merged.bugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.severity-majorThis label is used by an internal toolThis label is used by an internal tool
Milestone
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.
cremor, pmaslan, juunas11, vmandic, TheSilvermind and 13 more
Metadata
Metadata
Assignees
Labels
DoneThis issue has been fixedThis issue has been fixedaffected-mediumThis issue impacts approximately half of our customersThis issue impacts approximately half of our customersarea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesbreaking-changeThis issue / pr will introduce a breaking change, when resolved / merged.This issue / pr will introduce a breaking change, when resolved / merged.bugThis issue describes a behavior which is not expected - a bug.This issue describes a behavior which is not expected - a bug.severity-majorThis label is used by an internal toolThis label is used by an internal tool