Skip to content

Marshmallow Field(Default =) Depriciated After 3.12.2 #103

@SoundsSerious

Description

@SoundsSerious

Marshmallow After 3.13 has changed default to dump_default= and will switch in version 4. Probably not the biggest issue since arango-orm has been considering its own schema as I've seen discussed in other issues.

To solve this issue in my library I've simply specified a version of marshmallow to 3.12.2.

A couple other ideas, fork marshmallow and include a frozen version directly in the code base. Or go through the code updating to dump_default (which I personally think is a dumb name)

(https://marshmallow.readthedocs.io/en/stable/changelog.html#id3)3.13.0 (2021-07-21)
Features:

Replace missing/default field parameters with load_default/dump_default ([#1742](https://github.com/marshmallow-code/marshmallow/pull/1742)). Thanks [@sirosen](https://github.com/sirosen) for the PR.

Deprecations:

The use of missing/default field parameters is deprecated and will be removed in marshmallow 4. load_default/dump_default should be used instead.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions