Skip to content

Commit 7d3f999

Browse files
authored
Remove deprecated field usage
The 'default' argument to fields is deprecated in Marshmallow. Use 'dump_default' instead. Solves lidatong#546
1 parent dc63902 commit 7d3f999

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 = 'missing' 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)