Replies: 1 comment 7 replies
-
@XCanG hard to tell - you need to provide code for your SomeSchema and OtherSchema |
Beta Was this translation helpful? Give feedback.
7 replies
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.
-
There is currently some problem with that, if I had something like 200 and 403 responses I could write:
This will work fine, but if I use that:
It will complain about schema, as if it doesn't have proper fields, but it actually does, since it initiated and validated by
Schema
that used Pydantic behind scene.Additionally I find some loop problem here, I tried to specify
tuple[...]
andlist[...]
with different variations and if I putlist[Literal[200] | list[SomeSchema]]
it will try to revalidate same output until it crashes, in my case it did loop for 6453 times based on console output and then getInternalServerError
and crashes.Beta Was this translation helpful? Give feedback.
All reactions