From a992dddc617959466523febcaf14e64ef1661897 Mon Sep 17 00:00:00 2001 From: Daniyar Yeralin Date: Wed, 14 Aug 2019 15:33:00 -0400 Subject: [PATCH] Add support for marshmallow.fields.Number --- marshmallow_jsonschema/base.py | 1 + 1 file changed, 1 insertion(+) diff --git a/marshmallow_jsonschema/base.py b/marshmallow_jsonschema/base.py index ec0cb57..08e8316 100644 --- a/marshmallow_jsonschema/base.py +++ b/marshmallow_jsonschema/base.py @@ -98,6 +98,7 @@ def _get_default_mapping(self, obj): fields.List: list, fields.LocalDateTime: datetime.datetime, fields.Nested: "_from_nested_schema", + fields.Number: decimal.Decimal, } ) return mapping