We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0e48a37 commit 249ad47Copy full SHA for 249ad47
1 file changed
sqlmodel/main.py
@@ -101,7 +101,8 @@
101
OnDeleteType = Literal["CASCADE", "SET NULL", "RESTRICT"]
102
103
FIELD_ACCEPTED_KWARGS = set(inspect_module.signature(PydanticField).parameters.keys())
104
-FIELD_ACCEPTED_KWARGS.remove("json_schema_extra")
+if "schema_extra" in FIELD_ACCEPTED_KWARGS:
105
+ FIELD_ACCEPTED_KWARGS.remove("schema_extra")
106
107
108
def __dataclass_transform__(
0 commit comments