You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
First Check
Commit to Help
Example Code
Description
The parameter
extrais supported in the pydanticmodel_validate():https://docs.pydantic.dev/latest/api/base_model/#pydantic.BaseModel.model_validate
But that parameter is not supported in sqlmodel due to that method being overridden:
https://github.com/fastapi/sqlmodel/blob/main/sqlmodel/main.py#L873
https://github.com/fastapi/sqlmodel/blob/main/sqlmodel/_compat.py#L276
The
validate_python()method already takesextra, so this should be a simple fix.I can take a look at a PR if that would be helpful.
Operating System
macOS
Operating System Details
No response
SQLModel Version
0.0.37
Python Version
Python 3.11.14
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions