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
I would expect 204 a valid empty response. Right now as I understand according to docs you can define only one valid response, while you can define multiple error responses.
When designing an API, you usually want to return consistant results for one REST endpoint.
Because, then you'll have to handle it as an edge case.
Are you stuck with a concrete example where you need this ?
At the moment as a workaround you can make a single schema that accepts both empty result and a complete result.
Zodios client and server will let you return any OK status if it's between 200 and 299.
Just that openAPI docs will not show it.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
I would expect 204 a valid empty response. Right now as I understand according to docs you can define only one valid response, while you can define multiple error responses.
OpenApi example:
The text was updated successfully, but these errors were encountered: