You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
We have an api, where theres a field called code. this field contains a code related to the current error occurring. Since the response struct always has the same base, we only defined it once and use it for everything like so: // @Failure 400 {object} responses.HttpResponseBase. Obviously different routes produce different error codes.
Describe the solution you'd like
Since I did not find any documentation, I guess its currently not possible to override examples/enums of a response struct. I did only see the possibility to override the type. Thats what I am suggesting here.
Describe alternatives you've considered
lots and lots of different response structs - meh
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
We have an api, where theres a field called
code
. this field contains a code related to the current error occurring. Since the response struct always has the same base, we only defined it once and use it for everything like so:// @Failure 400 {object} responses.HttpResponseBase
. Obviously different routes produce different error codes.Describe the solution you'd like
Since I did not find any documentation, I guess its currently not possible to override examples/enums of a response struct. I did only see the possibility to override the type. Thats what I am suggesting here.
Describe alternatives you've considered
lots and lots of different response structs - meh
The text was updated successfully, but these errors were encountered: