[BUG] Pydantic's StringConstraint not working as expected in SQLModel #1329
Unanswered
mubarakalmehairbi
asked this question in
Questions
Replies: 0 comments
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.
-
First Check
Commit to Help
Example Code
Description
The expected output is:
where in both cases the username is in lower case.
However, the output is:
Notice that pydantic converted the username to lower case while sqlmodel didnt.
Note that this only happens if
table=True
.Operating System
Windows
Operating System Details
No response
SQLModel Version
0.0.24
Python Version
3.10.0
Additional Context
No response
Beta Was this translation helpful? Give feedback.
All reactions