-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Open
Labels
affected-mediumThis issue impacts approximately half of our customersThis issue impacts approximately half of our customersanalyzerIndicates an issue which is related to analyzer experienceIndicates an issue which is related to analyzer experiencearea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-openapiseverity-minorThis label is used by an internal toolThis label is used by an internal tool
Milestone
Description
Add an analyzer that validates the return types from an action method returning ActionResult<T>, e.g. don't let it return ObjectResult with a different T value, e.g. the following is invalid:
[HttpGet]
public ActionResult<IEnumerable<string>> Get()
{
return new ObjectResult(new { Not = "Valid" });
}benmccallum, Entroper, ilmax, loraderon, AgentEnder and 6 more
Metadata
Metadata
Assignees
Labels
affected-mediumThis issue impacts approximately half of our customersThis issue impacts approximately half of our customersanalyzerIndicates an issue which is related to analyzer experienceIndicates an issue which is related to analyzer experiencearea-mvcIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesIncludes: MVC, Actions and Controllers, Localization, CORS, most templatesenhancementThis issue represents an ask for new feature or an enhancement to an existing oneThis issue represents an ask for new feature or an enhancement to an existing onefeature-openapiseverity-minorThis label is used by an internal toolThis label is used by an internal tool