swag icon indicating copy to clipboard operation
swag copied to clipboard

// @Failure 400,403,404,500 {object} http.MyError

Open mesuutt opened this issue 3 years ago • 2 comments
trafficstars

Hi 👋 I have a feature request:

I have an error response strcut and I have using this error struct in my responses. I can add possible error responses with each status code like:

// @Failure 400 {object}  http.MyError
// @Failure 403 {object}  http.MyError
// @Failure 404 {object}  http.MyError
// @Failure 500 {object}  http.MyError

I think it should be good if I can specify the all error responses in one line like this:

// @Failure 400,403,404,500 {object}  http.MyError

mesuutt avatar Mar 05 '22 14:03 mesuutt

Sorry, I can't figure out if this is a bug or a feature request. Please edit using the provided issue template.

ubogdan avatar Mar 05 '22 17:03 ubogdan

// @Failure default {object} http.MyError

sdghchj avatar Mar 11 '22 07:03 sdghchj

@mesuutt Have you figured it out?

ubogdan avatar Dec 27 '22 15:12 ubogdan

@ubogdan yes, thanks :)

mesuutt avatar Dec 27 '22 21:12 mesuutt