I would like to specify fields that will use the default value if their value is None (even if they are not missing), something similar to the following field declaration will match perfectly to my case:
fields.Pluck(MySchema, 'x', default={'x': 0}, take_default_on=[None])
Is there any way doing this without @post_dump or overriding get_attribute method?
I would like to specify fields that will use the default value if their value is
None(even if they are not missing), something similar to the following field declaration will match perfectly to my case:Is there any way doing this without
@post_dumpor overridingget_attributemethod?