chore(deps): update dependency marshmallow to v3.26.2
This MR contains the following updates:
| Package | Update | Change |
|---|---|---|
| marshmallow (changelog) | minor |
==3.21.1 -> ==3.26.2
|
Release Notes
marshmallow-code/marshmallow (marshmallow)
v3.26.2
Bug fixes:
- :cve:
2025-68480: Merge error store messages without rebuilding collections. Thanks 카푸치노 for reporting and :user:deckar01for the fix.
v3.26.1
Bug fixes:
- Typing: Fix type annotations for
class Meta <marshmallow.Schema.Meta>options (:issue:2804). Thanks :user:lawrence-lawfor reporting.
Other changes:
- Remove default value for the
dataparam ofNested._deserialize <marshmallow.fields.Nested._deserialize>(:issue:2802). Thanks :user:gbensonfor reporting.
v3.26.0
Features:
- Typing: Add type annotations and improved documentation for
class Meta <marshmallow.Schema.Meta>options (🇵🇷 2760). - Typing: Improve type coverage of
marshmallow.Schema.SchemaMeta(🇵🇷 2761). - Typing:
marshmallow.Schema.loadsparameter allowsbytesandbytesarray(🇵🇷 2769).
Bug fixes:
- Respect
data_keywhen schema validators raise aValidationError <marshmallow.exceptions.ValidationError>with afield_nameargument (:issue:2170). Thanks :user:matejspfor reporting. - Correctly handle multiple
@post_load <marshmallow.post_load>methods where one method appends to the data and another passespass_original=True(:issue:1755). Thanks :user:ghostwheel42for reporting. -
URLfields now properly validatefilepaths (:issue:2249). Thanks :user:0xDEC0DEfor reporting and fixing.
Documentation:
- Add :doc:
upgrading guides <upgrading>for 3.24 and 3.26 (🇵🇷 2780). - Various documentation improvements (
🇵🇷 2757,🇵🇷 2759,🇵🇷 2765,🇵🇷 2774,🇵🇷 2778,🇵🇷 2783,🇵🇷 2796).
Deprecations:
- The
orderedclass Meta <marshmallow.Schema.Meta>option is deprecated (:issue:2146,🇵🇷 2762). Field order is already preserved by default. Setmarshmallow.Schema.dict_classtocollections.OrderedDictto maintain the previous behavior.
v3.25.1
Bug fixes:
- Typing: Fix type annotations for
Tuple <marshmallow.fields.Tuple>,Boolean <marshmallow.fields.Boolean>, andPluck <marshmallow.fields.Pluck>constructors (🇵🇷 2756). - Typing: Fix overload for
marshmallow.class_registry.get_class(🇵🇷 2756).
Documentation:
- Various documentation improvements (
🇵🇷 2746,🇵🇷 2747,🇵🇷 2748,🇵🇷 2749,🇵🇷 2750,🇵🇷 2751).
v3.25.0
Features:
- Typing: Improve type annotations for
SchemaMeta.get_declared_fields(🇵🇷 2742).
Bug fixes:
- Typing: Relax type annotation for
Schema.optsto allow subclasses to define their own options classes (🇵🇷 2744).
Other changes:
- Restore
marshmallow.base.SchemaABCfor backwards-compatibility (:issue:2743). Note that this class is deprecated and will be removed in marshmallow 4. Usemarshmallow.schema.Schemaas a base class for type-checking instead.
v3.24.2
Changes:
- Don't override
__new__to avoid breaking usages ofinspect.signaturewithField <marshmallow.fields.Field>classes. This allows marshmallow-sqlalchemy users to upgrade marshmallow without upgrading to marshmallow-sqlalchemy>=1.1.1.
Documentation:
- Add top-level API back to docs (:issue:
2739). Thanks :user:llucaxfor reporting.
v3.24.1
Bug fixes:
- Typing: Fix typing for
class_registry.get_class <marshmallow.class_registry.get_class>(🇵🇷 2735).
v3.24.0
Features:
- Typing: Improve typings in
marshmallow.fields(🇵🇷 2723). - Typing: Replace type comments with inline typings (
🇵🇷 2718).
Bug fixes:
- Typing: Fix type hint for
nestedparameter ofNested <marshmallow.fields.Nested>(🇵🇷 2721).
Deprecations:
- Custom validators should raise a
ValidationError <marshmallow.exceptions.ValidationError>for invalid values. Returning `False`` is no longer supported . - Deprecate
contextparameter ofSchema <marshmallow.schema.Schema>(:issue:1826). UsecontextVars.ContextVarto pass context data instead. -
Field <marshmallow.fields.Field>,Mapping <marshmallow.fields.Mapping>, andNumber <marshmallow.fields.Number>should no longer be used as fields within schemas. Use their subclasses instead.
v3.23.3
Bug fixes:
- Typing: Fix typing for
Schema.from_dict <marshmallow.schema.Schema.from_dict>(:issue:1653). Thanks :user:SteadBytesfor reporting.
Support:
- Documentation: Various documentation cleanups, including more concise docs in the
marshmallow.fieldsAPI reference (:issue:2307). Thanks :user:AbdealiLoKofor reporting.
v3.23.2
Bug fixes:
- Improve type hint formatting for
Field,Nested, andFunctionfields to resolve PyCharm warnings (:issue:2268). Thanks :user:Fares-Abubakerfor reporting and fixing.
v3.23.1
Support:
- Document
absoluteparameter ofURLfield (🇵🇷 2327). - Documentation: Remove (outdated) minimum Python 3 minor version in
documentation and README (
🇵🇷 2323).
v3.23.0
Features:
- Typing: replace "type" with specific metaclass for
SchemaandField.
Other changes:
- Officially support Python 3.13 (
🇵🇷 2319). - Drop support for Python 3.8 (
🇵🇷 2318).
v3.22.0
Features:
- Add
manyMeta option toSchemaso it expects a collection by default (:issue:2270). Thanks :user:himalczykfor reporting and :user:deckar01for the MR. - Refactor hooks (
🇵🇷 2279). Thanks :user:deckar01for the MR.
v3.21.3
Bug fixes:
- Fix memory leak that prevented schema instances from getting GC'd (
🇵🇷 2277). Thanks :user:mrcljxfor the MR.
v3.21.2
Bug fixes:
- Allow timestamp 0 in
fields.DateTime(:issue:2133). Thanks :user:flydzenfor reporting.
Configuration
- If you want to rebase/retry this MR, check this box
This MR has been generated by Renovate Bot.
Edited by Perun-GitLab Service Account