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.
json_schema_extra
schema_extra
1 parent 3ad8aa9 commit 20188bfCopy full SHA for 20188bf
sqlmodel/main.py
@@ -447,10 +447,11 @@ def Field(
447
if IS_PYDANTIC_V2:
448
# Handle a workaround when json_schema_extra was passed via schema_extra
449
if "json_schema_extra" in current_schema_extra:
450
+ json_schema_extra_from_schema_extra = current_schema_extra.pop(
451
+ "json_schema_extra"
452
+ )
453
if not current_json_schema_extra:
- current_json_schema_extra = current_schema_extra.pop(
- "json_schema_extra"
- )
454
+ current_json_schema_extra = json_schema_extra_from_schema_extra
455
# Split parameters from schema_extra to field_info_kwargs and json_schema_extra
456
for key, value in current_schema_extra.items():
457
if key in FIELD_ACCEPTED_KWARGS:
0 commit comments