Custom Type Json schema results in KeyError: #12042
Unanswered
zolyfarkas-fb
asked this question in
Question
Replies: 1 comment 2 replies
-
Pydantic sets expectations when trying to generate a JSON Schema, related to references. If you look at the JSON Schema of Using With your current example, setting |
Beta Was this translation helpful? Give feedback.
2 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have the following simple model:
the following test:
fails with:
this is a simplified version of a custom type that I have that is designed to reproduce the issue I am facing.
Is this a bug? or am I doing something wrong?
thanks!
Beta Was this translation helpful? Give feedback.
All reactions