I have a specific DTO I'm using to return as an example for Swagger documentation. How can I change the example in case I have a success 201 code?
Example responses in swagger:
I use the annotations "@ApiModelProperty" to describe my objects, but finding no way on how to change the example for different response codes. In my code, I don't want to show the Errors list, as it's an optional property and it will just be available when non 201 codes are going to be produced.
Ideas?
