Replies: 1 comment
-
Personally I have "solved" this by just making variants for those responses that I know Poem can return in the response enum. Not ideal, but the best I've got. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi everyone,
given I have a function defined like this
with these possible responses:
How would I let
poem-openapi
know that there are other possible errors, like a400 - Bad Request
that gets handled automatically by poem (which is great)? Would I have to add it manually to every possibleApiResponse
? If so: how would I do that?And: What about other things like panic. When adding the
CatchPanic
middleware I get a500 - Internal Server Error
(again: this is great), but how to document it?Beta Was this translation helpful? Give feedback.
All reactions