We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 03d05af commit dcca73dCopy full SHA for dcca73d
tests/test_openapi_schema.py
@@ -60,6 +60,8 @@ def test_map_serializer_field_ok(schema: dict):
60
({"const": "string"}, {"enum": ["string"]}), # string
61
({"const": True}, {"enum": [True]}), # bool
62
({"const": None}, None), # none
63
+ ({"const": {"k": "v", "k2": 10}}, {"enum": [{"k": "v", "k2": 10}]}), # dict
64
+ ({"const": [10, 20]}, {"enum": [[10, 20]]}), # list
65
],
66
)
67
def test_map_serializer_field_const(schema: dict, expected: Any):
0 commit comments