marshmallow breaking changes
Updated December 4, 2026
On this page
Latest version 4.4.0, released November 4, 2026. Source repository
Its 4.4.0 release drops Python 3.10. Python end of life dates.
- From 3.0.0 to 4.4.0: 151 breaking changes in 8 versions.
- From 2.0.0 to 4.4.0: 316 breaking changes in 30 versions.
marshmallow 4.4.0 breaking changes
- Removed
Python 3.10 is no longer supported, so users on it must upgrade Python before using this release. github.com - Behavior changed
fields.TimeDelta
Code that catches ValueError from TimeDelta when given NaN must now catch ValidationError. github.com - Signature changed
marshmallow.schema.get_value
Was def get_value(obj, key: int | str, default=missing); now def get_value(obj, key: str, default=missing). pypi.org - Signature changed
marshmallow.utils.get_value
Was def get_value(obj, key: int | str, default=missing); now def get_value(obj, key: str, default=missing). pypi.org
marshmallow 4.3.1 breaking changes
- Default changed
allow_none
When by_value is enabled on an enum with a None value, allow_none now defaults to True. Code that relied on None being rejected by default must set allow_none explicitly. github.com
marshmallow 4.3.0 breaking changes
- Signature changed
marshmallow.fields.Field.__init__
Was def __init__(self, *, load_default: typing.Any = missing_, dump_default: typing.Any = missing_, data_key: str | None = None, attribute: str | None = None, validate: types.Validator | typing.Iterable[types.Validator] | None = None... pypi.org - Signature changed
marshmallow.fields.Raw.__init__
Was def __init__(self, *, load_default: typing.Any = missing_, dump_default: typing.Any = missing_, data_key: str | None = None, attribute: str | None = None, validate: types.Validator | typing.Iterable[types.Validator] | None = None... pypi.org - Signature changed
marshmallow.validate.Regexp.__init__
Was def __init__(self, regex: str | bytes | typing.Pattern, flags: int = 0, *, error: str | None = None); now def __init__(self, regex: str | bytes | re.Pattern[str] | re.Pattern[bytes], flags: int = 0, *, error: str | None = None). pypi.org - Signature changed
marshmallow.validate.URL.RegexMemoizer.__call__
Was def __call__(self, *, relative: bool, absolute: bool, require_tld: bool) -> typing.Pattern; now def __call__(self, *, relative: bool, absolute: bool, require_tld: bool) -> re.Pattern[str]. pypi.org
marshmallow 4.2.4 breaking changes
- Signature changed
marshmallow.fields.Nested.__init__
Was def __init__(self, nested: Schema | SchemaMeta | str | dict[str, Field] | typing.Callable[[], Schema | SchemaMeta | dict[str, Field]], *, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = (), many: bool |... pypi.org
marshmallow 4.2.3 breaking changes
- Behavior changed
marshmallow.fields.DateTime
With format="timestamp_ms", boolean values that were previously accepted are now rejected, so inputs passing bools must be changed. github.com - Behavior changed
marshmallow.fields.Mapping
Using marshmallow.fields.Mapping directly inside a Schema is now prevented, so code that does this must switch to a concrete field type. github.com - Behavior changed
marshmallow.fields.Number
Using marshmallow.fields.Number directly inside a Schema is now prevented, so code that does this must switch to a concrete field type. github.com - Signature changed
marshmallow.fields.Constant.default_error_messages
Was default_error_messages: dict[str, str]; now default_error_messages: types.ErrorMessages. pypi.org - Signature changed
marshmallow.fields.Field.__init__
Was def __init__(self, *, load_default: typing.Any = missing_, dump_default: typing.Any = missing_, data_key: str | None = None, attribute: str | None = None, validate: types.Validator | typing.Iterable[types.Validator] | None = None... pypi.org - Signature changed
marshmallow.fields.Field.default_error_messages
Was default_error_messages: dict[str, str]; now default_error_messages: types.ErrorMessages. pypi.org - Signature changed
marshmallow.fields.Raw.__init__
Was def __init__(self, *, load_default: typing.Any = missing_, dump_default: typing.Any = missing_, data_key: str | None = None, attribute: str | None = None, validate: types.Validator | typing.Iterable[types.Validator] | None = None... pypi.org - Signature changed
marshmallow.fields.Tuple.__init__
Was def __init__(self, tuple_fields: typing.Iterable[Field] | typing.Iterable[type[Field]], **kwargs: Unpack[_BaseFieldKwargs]); now def __init__(self, tuple_fields: typing.Iterable[Field | type[Field]], **kwargs: Unpack[_BaseFieldKwargs]). pypi.org
marshmallow 4.2.0 breaking changes
- Behavior changed
Nested
Passing many to Nested now takes precedence over the value set on the schema instance. Check code that relied on the schema instance's many setting being used instead. github.com - Signature changed
marshmallow.fields.Nested.__init__
Was def __init__(self, nested: Schema | SchemaMeta | str | dict[str, Field] | typing.Callable[[], Schema | SchemaMeta | dict[str, Field]], *, only: types.StrSequenceOrSet | None = None, exclude: types.StrSequenceOrSet = (), many: bool =... pypi.org
Older versions
33 older versions, each with its first changes. Sign up to see every change
Show 33 older versions
marshmallow 4.1.0 breaking changes
- Removed
Support for Python 3.9 is dropped in this release; users on Python 3.9 must upgrade Python before upgrading marshmallow. github.com
marshmallow 4.0.0 breaking changes
- Removed
default
The default parameter is removed. Use dump_default instead. github.com - Removed
json_module
The json_module Meta option is removed. Use render_module instead. github.com
And 128 more in this version.
marshmallow 3.0.0 breaking changes
- Removed
marshmallow.base.FieldABC.__deepcopy__
FieldABC.__deepcopy__ was removed in marshmallow 3.0.0 pypi.org - Removed
marshmallow.compat
marshmallow.compat was removed in marshmallow 3.0.0 pypi.org
And 112 more in this version.
marshmallow 3.0.0rc9 breaking changes
- Removed
marshmallow.fields.LocalDateTime
LocalDateTime is removed; marshmallow.utils.utc is removed in favor of datetime.timezone.utc. pypi.org - Removed
marshmallow.utils.utc
marshmallow.utils.utc is removed; use datetime.timezone.utc instead. pypi.org
And 3 more in this version.
marshmallow 3.0.0rc8 breaking changes
- Removed
marshmallow.fields.List.container
fields.List.container, fields.Dict.key_container and value_container are renamed to inner, key_field and value_field. pypi.org
marshmallow 3.0.0rc7 breaking changes
- Behavior changed
pre_load
many is passed as a keyword argument to decorated hooks and partial to some; methods should accept **kwargs. github.com - Behavior changed
validate.Range
Keyword-only arguments are now used, so positional calls may break. github.com
marshmallow 3.0.0rc6 breaking changes
- Removed
Only Python 3.5 and later is supported now. github.com - Behavior changed
fields.List
Special-casing in fields.List and fields.Tuple for accessing nested attributes is removed; use fields.Pluck. github.com
marshmallow 3.0.0rc5 breaking changes
- Removed
marshmallow.fields.FormattedString
fields.FormattedString is removed; use fields.Function or fields.Method instead. pypi.org
marshmallow 3.0.0rc3 breaking changes
- Behavior changed
fields.Boolean
fields.Boolean now parses yes and no values. github.com - Behavior changed
fields.Dict
Ordering of keys and values arguments to fields.Dict changed. github.com
marshmallow 3.0.0rc2 breaking changes
- Behavior changed
missing
A ValueError is raised when the missing parameter is passed for required fields. github.com - Behavior changed
ValidationError
Extra keyword arguments passed to ValidationError in validators are no longer passed to the final ValidationError. github.com
marshmallow 3.0.0rc1 breaking changes
- Behavior changed
ValidationError
ValidationError now expects a single field name and error structures are merged on completion. github.com
marshmallow 3.0.0b18 breaking changes
- Removed
marshmallow.schema.BaseSchema.prefix
The prefix parameter of Schema is removed; use a @post_dump method instead. pypi.org
marshmallow 3.0.0b17 breaking changes
- Renamed
DateTime
The DateTime dateformat Meta option is renamed to datetimeformat; dateformat now applies to Date. github.com - Behavior changed
Schema
Schema instantiation raises ValueError on attribute or data_key collision. github.com
marshmallow 3.0.0b14 breaking changes
- Removed
fields.Nested
Passing a string as only to fields.Nested is no longer supported; use fields.Pluck instead. github.com - Behavior changed
fields.Float
Float takes allow_nan, defaulting to False, so nan and inf are rejected unless allowed. github.com
And 1 more in this version.
marshmallow 3.0.0b13 breaking changes
- Behavior changed
only
Passing only or exclude as a string raises StringNotCollectionError. github.com - Behavior changed
Schema.load
When a schema error payload is a dict, it overwrites existing error lists rather than being appended. github.com
And 1 more in this version.
marshmallow 3.0.0b12 breaking changes
- Removed
marshmallow.ValidationError.fields
ValidationError.fields is removed; access field instances from Schema.fields. pypi.org - Behavior changed
only
only and exclude are bound by declared fields and raise ValueError for invalid fields. github.com
And 2 more in this version.
marshmallow 3.0.0b9 breaking changes
- Behavior changed
missing
missing and default values are now passed in deserialized form. github.com
marshmallow 3.0.0b8 breaking changes
- Removed
marshmallow.fields.Field.load_from
Field name is no longer checked when load_from is specified. pypi.org - Behavior changed
fields.Dict
Error message collection for the Dict field changed. github.com
And 2 more in this version.
marshmallow 3.0.0b7 breaking changes
- Behavior changed
Schema
Schemas are always strict and the strict parameter is removed. github.com - Behavior changed
Schema.load
Schema.load and Schema.dump return data instead of a (data, errors) tuple. github.com
marshmallow 3.0.0b6 breaking changes
- Behavior changed
validate.URL
validate.URL requires square brackets around IPv6 URLs. github.com
marshmallow 3.0.0b3 breaking changes
- Removed
marshmallow.SchemaOpts.json_module
The json_module option is deprecated in favor of render_module. pypi.org - Behavior changed
fields.Number
Number fields no longer accept booleans as valid input. github.com
marshmallow 3.0.0b2 breaking changes
- Behavior changed
validate.ContainsOnly
validate.ContainsOnly now accepts empty and duplicate values. github.com - Signature changed
fields.Boolean
Passing default positionally to fields.Boolean may break; pass default as a keyword argument. github.com
marshmallow 3.0.0b1 breaking changes
- Default changed
validates_schema
skip_on_field_errors now defaults to True for validates_schema. github.com
marshmallow 3.0.0a1 breaking changes
- Removed
fields.Function
The func parameter of fields.Function and method_name parameter of fields.Method are removed; use the serialize parameter. github.com - Removed
marshmallow.schema.BaseSchema.__error_handler__
__error_handler__, __accessor__, @Schema.error_handler and @Schema.accessor are removed; override Schema.handle_error and Schema.get_attribute instead. pypi.org
And 7 more in this version.
marshmallow 2.0.0 breaking changes
- Removed
marshmallow.class_registry.RegistryError.__init__
RegistryError() was removed in marshmallow 2.0.0 pypi.org - Removed
marshmallow.class_registry.RegistryError.field
RegistryError.field was removed in marshmallow 2.0.0 pypi.org
And 79 more in this version.
marshmallow 2.0.0rc2 breaking changes
- Renamed
raw
The raw parameter of the pre_*, post_* and validates_schema decorators is renamed to pass_many. github.com - Behavior changed
Methods decorated with pre_*, post_* or validates_* must be instance methods; class methods are not supported. github.com
marshmallow 2.0.0rc1 breaking changes
- Removed
marshmallow.schema.BaseSchema.data_handler
Schema.data_handler is removed; use post_dump instead. pypi.org - Removed
marshmallow.schema.BaseSchema.preprocessor
Schema.preprocessor is removed; use pre_load instead. pypi.org
And 4 more in this version.
marshmallow 2.0.0b5 breaking changes
- Behavior changed
Email
Default error messages for the Email validator no longer include user input. github.com - Behavior changed
URL
Default error messages for the URL validator no longer include user input. github.com
marshmallow 2.0.0b4 breaking changes
- Removed
Legacy validator functions have been removed; use the class-based validators in marshmallow.validate. github.com - Behavior changed
load_from
When load_from is used, its value is now the key in the errors dictionary. github.com
marshmallow 2.0.0b3 breaking changes
- Removed
marshmallow.utils.get_func_name
utils.get_func_name is removed; use utils.get_callable_name instead. pypi.org - Removed
Method
The optional context parameter passed to methods for Method fields has been removed. github.com
And 3 more in this version.
marshmallow 2.0.0b2 breaking changes
- Behavior changed
fields.Decimal
NaN, Infinity and -Infinity are now invalid for fields.Decimal; pass allow_nan=True to accept them. github.com
marshmallow 2.0.0b1 breaking changes
- Removed
marshmallow.fields.Nested.allow_null
The allow_null parameter of fields.Nested has been removed. pypi.org - Behavior changed
Fields that have errors no longer appear in the (de)serialized output dictionaries. github.com
And 1 more in this version.
marshmallow 2.0.0a1 breaking changes
- Removed
Generator functions that yield validators are no longer supported; plain generators of validators still work. github.com - Removed
marshmallow.exceptions.ForcedError
ForcedError has been removed. pypi.org
And 8 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.