Unable to use pydantic validators on Relation attributes #1927
Unanswered
CisterMoke
asked this question in
Questions
Replies: 1 comment
-
|
Did you ever figure out a solution? |
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
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
I want to parse a
Buildinginstance from a nested dictionarydwith theBuildingandAddressclass defined in the example code.So far I have been unavailable to successfully execute
Building.parse_obj(d). Commenting out the validator inBuildingsolves the pydantic error bein raised but the address of the parsed building will be a dict instead of anAddressinstanceOperating System
Windows
Operating System Details
No response
SQLModel Version
0.0.4
Python Version
3.6.12
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions