Skip to content

Commit

Permalink
Use Raw, not Field
Browse files Browse the repository at this point in the history
  • Loading branch information
lafrech committed Jan 7, 2025
1 parent 93100a8 commit 5cde3e4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/test_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 5cde3e4

Please sign in to comment.