Browse Source

Simplify tests/test_custom_schema_fields.py

Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com>
pull/12528/head
Denis Laxalde 2 weeks ago
parent
commit
51906225bd
  1. 17
      tests/test_custom_schema_fields.py

17
tests/test_custom_schema_fields.py

@ -55,17 +55,12 @@ item_schema = {
"title": "Name", "title": "Name",
"type": "string", "type": "string",
}, },
"description": ( "description": {
{ "title": "Description",
"title": "Description", "type": (
"type": IsList("string", "null", check_order=False), IsList("string", "null", check_order=False) if PYDANTIC_V2 else "string"
} ),
if PYDANTIC_V2 },
else {
"title": "Description",
"type": "string",
}
),
}, },
} }

Loading…
Cancel
Save