Browse Source

Apply suggestions from Yurii

Co-authored-by: Motov Yurii <[email protected]>
pull/15139/head
Sofie Van Landeghem 4 months ago
committed by GitHub
parent
commit
d482539492
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 4
      tests/test_schema_compat_pydantic_v2.py

4
tests/test_schema_compat_pydantic_v2.py

@ -65,7 +65,7 @@ def test_openapi_schema(client: TestClient):
},
"components": {
"schemas": IsOneOf(
# Newer Pydantic: no top-level OtherRole
# Pydantic >= 2.11: no top-level OtherRole
{
"PlatformRole": {
"type": "string",
@ -88,7 +88,7 @@ def test_openapi_schema(client: TestClient):
"title": "User",
},
},
# Older Pydantic: adds a top-level OtherRole schema
# Pydantic < 2.11: adds a top-level OtherRole schema
{
"OtherRole": {
"enum": [],

Loading…
Cancel
Save