Add validation in SQLModel.sqlmodel_update #1241
Unanswered
MatthewMckee4
asked this question in
Questions
Replies: 1 comment
-
It seems simillar to the issue that sqlmodel actually does not use pytantic to validate when you set |
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
-
First Check
Commit to Help
Example Code
Description
This is very short example, but here when i update the child with invalid data, it does not do any sort of validation on the updated model, this results in an invalidated instance.
It would be nice if it re-validated the class after updating it
Operating System
Linux
Operating System Details
Ubuntu 24.04
SQLModel Version
.0.22
Python Version
3.12.3
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions