We are using Swashbuckle.AspNetCore Version="5.6.3" to generate swagger (v2) documents for our .Net core 3.1 web service. In .Net core there are 2 ways of specifying body parameters.
1. public void someActionMethod (Guid id, [FromBody] item){...}
2. public void SomeActionMethod (Guid id) {
var item = Request.Body;
}
We are using second option for body parameters using APIController. In that swashbuckle is unable infer the required body parameter and is missing from the documentation. Can anyone please point if there is a way to specify and generate the documentation for the body parameter without using [FromBody]? It is an existing API so I want to avoid a change to the signature just for documentation purposes.