I use Swashbuckle.AspNetCore library to generate Swagger documentation. Is it possible to add multiple error messages to one status code? For example I have field which has validations so I need this in my documentation:
Code Description 400 Invalid format Field is required Should be greater than 10
In previous version of library we had [SwaggerResponse] where I could put validation errors into description, but the attribute is not available in newest version. We have [ProducesResponseType] attribute which doesn't have description parameter.
[SwaggerResponse]
[ProducesResponseType]
1.4m articles
1.4m replys
5 comments
56.9k users