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. 13
      tests/test_custom_schema_fields.py

13
tests/test_custom_schema_fields.py

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

Loading…
Cancel
Save