Handle multiple 2XX #2551
Unanswered
guillaumeLamanda
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey here,
I have an issue consuming an endpoint defining multiple 2XX.
In my case, the schema declares a 200 with json data, and a 204 with
content: never.Here is a exemple schema I'm consuming
I use
openapi-fetch, and thedataisnever. The type-checking seems to be lost handling those two success cases.I haven't found any part of the documentation covering that.
Does anyone had a similar problem, or have an idea how to solve it?
Beta Was this translation helpful? Give feedback.
All reactions