title | ms.date | description | author | monikerRange | ms.author | uid |
---|---|---|---|---|---|---|
ASP0024: A route handler has multiple parameters with the [FromBody] attribute |
03/28/2023 |
Learn about analysis rule ASP0024: A route handler has multiple parameters with the [FromBody] attribute |
tdykstra |
>= aspnetcore-8.0 |
tdykstra |
diagnostics/asp0024 |
Value | |
---|---|
Rule ID | ASP0024 |
Category | Usage |
Fix is breaking or non-breaking | Non-breaking |
A route handler has multiple parameters with the [FromBody]
attribute or a parameter with an [AsParameters]
attribute where the parameter type contains multiple members with [FromBody]
attributes.
Route handler has multiple parameters with the [FromBody]
attribute.
To fix a violation of this rule, remove [FromBody]
attributes from all but one parameter.
Do not suppress a warning from this rule.