How to annotate a method with multiple success response schema #1677
Unanswered
lioevincent
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
How to annotate a method with multiple success response schema which all returns 200 response code?
I want to show all possibilities for said endpoint on the swagger web view
for example
// @Success 200 {object} response.JSONResponse{data=map[string]string} // @Success 200 {object} response.JSONResponse{data=entity.RunJobResponse} // @Success 200 {object} response.JSONResponse{data=entity.RunJobDeviceResponse}
Beta Was this translation helpful? Give feedback.
All reactions