New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiple success and failure sections for a single code #1803
Comments
Both OpenAPI 2.0 and 3+ specs only support one response type per status code (ref). In 3+ I think you could use
|
Is your feature request related to a problem? Please describe.
Endpoints that return the same error or success code for multiple reasons; i.e. 200 that returns a specific payload structure if there is only 1 record vs a different payload structure if there are > 1 records
Describe the solution you'd like
Be able to do something along the lines of
I found that I could use
<br/>
in the failures to basically do the same thing, but not sure about success.The text was updated successfully, but these errors were encountered: