Skip to content

Commit b5ea169

Browse files
fix(mm): Replace deprecated Marshmallow Field parameters
In Marshmallow 3.13.0, the `default` and `missing` parameters of the `Field` object were deprecated and replaced with `dump_default` and `load_default` respectively. fixes: #328
1 parent dc63902 commit b5ea169

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dataclasses_json/mm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def schema(cls, mixin, infer_missing):
305305
else:
306306
type_ = field.type
307307
options: typing.Dict[str, typing.Any] = {}
308-
missing_key = 'missing' if infer_missing else 'default'
308+
missing_key = 'load_default' if infer_missing else 'dump_default'
309309
if field.default is not MISSING:
310310
options[missing_key] = field.default
311311
elif field.default_factory is not MISSING:

0 commit comments

Comments
 (0)