Closed yadgar closed 11 years ago
It would be nice if this tool added a way to declare the errorResponses of a REST resource and then include them in the created JSON files (see https://github.com/wordnik/swagger-core/wiki/Errors).
Maybe translating a specific Javadoc annotation into an error response specification?
:+1: for the javadoc annotation
@[annotation_name] [code] [reason]
-errorAnnotationNames errorResponse,myCustomError
@errorResponse 500 something bad happened @myCustomError 743 unknown behaviour
It would be nice if this tool added a way to declare the errorResponses of a REST resource and then include them in the created JSON files (see https://github.com/wordnik/swagger-core/wiki/Errors).
Maybe translating a specific Javadoc annotation into an error response specification?