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
When there's [FromForm] presents as the parameter on the endpoint and you have [Description] attribute on the request model. The description is not included in the generated OpenApi doc.
Expected Behavior
The description tag is also included.
Steps To Reproduce
// Request model
public class Testing
{
[Description("Testing purpose")]
public string Description { get; set; }
}
// The endpoint
public async Task<IActionResult> GetOrganisationInfoAsync([FromForm] Testing testing)
{
return Ok();
}
Result in openApi doc, no description is generated.