-
-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Bug when generating Json fields in Pydantic model #456
Comments
Aah Json fields aren't supported for v1. I don't exactly remember why that decision was made, even though I'm the one who did it 😅 I'll see if it's possible to add support for it. As a workaround until it's fixed, you can override the |
Thank you for your answer! I will look into the solution you propose. Do you have any idea when support could be added (if it is actually possible) ? |
@Leobouloc I think it's going to be at least January mid or so before I'll get a chance to work on it. However, if someone else is willing to raise a PR for this, I'd be happy to review it! |
Description
It seems like generating
Json
fields in Pydantic (1.10) creates a bug. Trying thefactory_use_construct=True
does not help as it provides aJsonWrapperValue
object which is not a validJson
.URL to code causing the issue
No response
MCVE
Release Version
2.12.0
Note
While we are open for sponsoring on GitHub Sponsors and
OpenCollective, we also utilize Polar.sh to engage in pledge-based sponsorship.
Check out all issues funded or available for funding on our Polar.sh dashboard
The text was updated successfully, but these errors were encountered: