From 5cde3e4c383951052c21743e59bd23ecb6d86d1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Lafr=C3=A9choux?= Date: Tue, 7 Jan 2025 12:42:27 +0100 Subject: [PATCH] Use Raw, not Field --- tests/test_api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_api.py b/tests/test_api.py index 2e9fbb67..0ee3e27e 100644 --- a/tests/test_api.py +++ b/tests/test_api.py @@ -546,7 +546,7 @@ def dumps(self, obj, **kwargs): return json.dumps(obj, **kwargs, cls=CustomJSONEncoder) class CustomSchema(ma.Schema): - custom_field = ma.fields.Field(load_default=CustomType()) + custom_field = ma.fields.Raw(load_default=CustomType()) app.config["OPENAPI_VERSION"] = openapi_version app.json = CustomJsonProvider(app)