Closed intZero closed 11 months ago
I think it is the same issue as flask-smorest's https://github.com/marshmallow-code/flask-smorest/issues/517, except in flask-smorest we want to solve it by using flask json serializer.
Did you set as_string=True
? See docstring in Decimal
field.
"Native" numerical types such as Int and Float serialize correctly but Decimal needs to specifically be serialized to a float for the renderer.
From this issue: https://github.com/marshmallow-code/apispec/issues/869
Previously, this field
would render to:
Now it will render to: