I am using swagger in a C# webapi controller. I am using XML comments and would like to have annotations for a body request that I am reading within the method and serializing with my own custom serializer. I am having a hard time figuring out how to set the "params" to show in swagger, without having the actually parameter in the method. Ex:
Search([FromBody] MyObject myObject),
instead I would like to do:
Search() {
string body = await Request.Content.ReadAsStringAsync();
// custom serialization
}