From 00cc0d7dcdac1e744a574b0c89efcaf319bcc92c Mon Sep 17 00:00:00 2001 From: Ezeudoh Tochukwu Date: Tue, 19 Nov 2024 05:12:13 +0100 Subject: [PATCH] fixed test for latest pydantic model --- tests/test_v2_pydantic/test_custom_fields.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_v2_pydantic/test_custom_fields.py b/tests/test_v2_pydantic/test_custom_fields.py index 5dbce86..8bed048 100644 --- a/tests/test_v2_pydantic/test_custom_fields.py +++ b/tests/test_v2_pydantic/test_custom_fields.py @@ -31,7 +31,7 @@ class StudentSchema(ModelSchema): "title": "Id", }, "semester": { - "allOf": [{"$ref": "#/$defs/SemesterEnum"}], + "$ref": "#/$defs/SemesterEnum", "default": "1", "description": "", "title": "Semester", @@ -67,7 +67,7 @@ class StudentSchema(ModelSchema): "title": "Id", }, "semester": { - "allOf": [{"$ref": "#/$defs/SemesterEnum"}], + "$ref": "#/$defs/SemesterEnum", "default": "1", "description": "", "title": "Semester",