From d482539492b78d5546ba78df19e08da03b8e652f Mon Sep 17 00:00:00 2001 From: Sofie Van Landeghem Date: Mon, 23 Mar 2026 09:48:44 +0100 Subject: [PATCH] Apply suggestions from Yurii Co-authored-by: Motov Yurii <109919500+YuriiMotov@users.noreply.github.com> --- tests/test_schema_compat_pydantic_v2.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_schema_compat_pydantic_v2.py b/tests/test_schema_compat_pydantic_v2.py index 2aef8c0c28..7612c6ab5b 100644 --- a/tests/test_schema_compat_pydantic_v2.py +++ b/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": [],