This is an extension of
Json conversion in ASP.NET for CQRS
Whereby we created a class to handle optional null-able parameters for our API.
Now I want the swagger doc to match up for the class, and was hoping for a generic way to do so
Currently it looks like this:
{
"description": {
"value": "string",
"hasValue": true
}
}
when the actual required JSON is this:
{
"description": "string"
}
As in the previous question, I'm new to the libraries involved and Googling hasn't helped, so help with the Swagger defaults is muchly appreciated.