SQLModel's Field parameters don't match Pydantic's latest Field parameters #1005
Unanswered
ixycoexzckwpmlcu
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
-
First Check
Description
Some of the parameters in Pydantic's
Field()
constructor aren't seen in SQLModel'sField()
constructor (for example,validation_alias
,serialization_alias
, andexamples
). Others are deprecated in Pydantic but still used in SQLModel (for example,min_items
andmax_items
). Note that these new parameters can still be used by passing in via theschema_extra
parameter, but this isn't as intuitive as passing them as**kwargs
(as Pydantic itself does with itsField()
constructor) or by simply including the new parameters altogether.Operating System
Linux
SQLModel Version
SQLModel 0.0.19
Python Version
Python 3.12.4
Beta Was this translation helpful? Give feedback.
All reactions