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",