- update to 3.20.1:
* Fix call to ``get_declared_fields``: pass ``dict_cls`` again
* Add ``absolute`` parameter to ``URL`` validator and ``Url``
* Use Abstract Base Classes to define ``FieldABC`` and
``SchemaABC``
* Use `OrderedSet` as default `set_class`. Schemas are now
ordered by default.
* Handle ``OSError`` and ``OverflowError`` in
``utils.from_timestamp`` (:pr:`2102`).
* Fix the default inheritance of nested partial schemas
* Officially support Python 3.11 (:pr:`2067`).
* Drop support for Python 3.7 (:pr:`2135`).
- rename docs subpackage to the more common doc name
- Update to 3.19.0
* Add timestamp and timestamp_ms formats to fields.DateTime (#612). Thanks @vgavro for the suggestion and thanks @vanHoi for the PR.
OBS-URL: https://build.opensuse.org/request/show/1132365
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-marshmallow?expand=0&rev=23
* Fix call to ``get_declared_fields``: pass ``dict_cls`` again
* Add ``absolute`` parameter to ``URL`` validator and ``Url``
* Use Abstract Base Classes to define ``FieldABC`` and
``SchemaABC``
* Use `OrderedSet` as default `set_class`. Schemas are now
ordered by default.
* Handle ``OSError`` and ``OverflowError`` in
``utils.from_timestamp`` (:pr:`2102`).
* Fix the default inheritance of nested partial schemas
* Officially support Python 3.11 (:pr:`2067`).
* Drop support for Python 3.7 (:pr:`2135`).
- rename docs subpackage to the more common doc name
- Update to 3.19.0
* Add timestamp and timestamp_ms formats to fields.DateTime (#612). Thanks @vgavro for the suggestion and thanks @vanHoi for the PR.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=48
- Update to 3.18.0 (2022-09-15)¶
Features:
Add Enum field (#2017) and (#2044).
Bug fixes:
Fix typing in Field._serialize signature (#2046).
- Update to 3.17.1 (2022-08-22)
Bug fixes:
Add return type to fields.Email.__init__ (#2018). Thanks @kkirsche for the PR.
Add missing type hint to IPInterface __init__ (#2036).
- Update to 3.17.0 (2022-06-26)
Features:
Support serialization as float in TimeDelta field (#1998). Thanks @marcosatti for the PR.
Add messages_dict property to ValidationError to facilitate type checking (#1976). Thanks @sirosen for the PR.
- Update to 3.16.0 (2022-05-29)
Features:
Raise ValueError if an invalid value is passed to the unknown argument (#1721, #1732). Thanks @sirosen for the PR.
Other changes:
Set lower bound for packaging requirement (#1957). Thanks @MatthewNicolTR for reporting and thanks @sirosen for the PR.
Improve warning messages by passing stacklevel (#1986). Thanks @tirkarthi for the PR.
- Update to 3.15.0 (2022-03-12)
Features:
Allow passing a dict to fields.Nested (#1935). Thanks @sirosen for the PR.
Other changes:
distutils deprecation warning in Python 3.10 (#1903). Thanks @kkirsche for the PR.
Add py310 to black target-version (#1921).
Drop support for Python 3.6 (#1923).
OBS-URL: https://build.opensuse.org/request/show/1007017
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=33
- Update to 3.14.1 (2021-11-13)
* Fix publishing type hints per PEP-561 (#1905). Thanks @bwindsor for the catch and patch.
- Release 3.14.0 (2021-10-17)
* Fix fields.TimeDelta serialization precision (#1865). Thanks @yarsanich for reporting.
* Fix type-hints for `data` arg in `Schema.validate` to accept list of
dictionaries (#1790, #1868). Thanks @yourun-proger for PR.
* Improve warning when passing metadata as keyword arguments (#1882).
Thanks @traherom for the PR.
* Don’t build universal wheels. We don’t support Python 2 anymore.
(#1860) Thanks @YKdvd for reporting.
* Make the build reproducible (#1862).
* Drop support for Python 3.5 (#1863).
* Test against Python 3.10 (#1888).
- Release 3.13.0 (2021-07-21)
* Replace missing/default field parameters with load_default/dump_default (#1742).
Thanks @sirosen for the PR.
* The use of missing/default field parameters is deprecated and will be removed
* in marshmallow 4. load_default/dump_default should be used instead.
- Release 3.12.2 (2021-07-06)
* Don’t expose Fields as Schema attributes. This reverts a change
introduced in 3.12.0 that causes issues when field names conflict
with Schema attributes or methods. Fieldss are still accessible on a
Schema instance through the fields attribute. (#1843)
- Release 3.12.1 (2021-05-10)
* Fix bug that raised an AttributeError when instantiating a Schema with a
field named parent (#1808). Thanks @flying-sheep for reporting and helping with the fix.
- Release 3.12.0 (2021-05-09)
* Add validate.And (#1768). Thanks @rugleb for the suggestion.
* Add type annotations to marshmallow.decorators (#1788, #1789). Thanks @michaeldimchuk for the PR.
* Let Fields be accessed by name as Schema attributes (#1631).
* Improve types in marshmallow.validate (#1786).
* Make marshmallow.validate.Validator an abstract base class (#1786).
* Remove unnecessary list cast (#1785).
OBS-URL: https://build.opensuse.org/request/show/979706
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=31
- Update to 3.11.1
* Fix treatment of dotted keys when unknown=INCLUDE (#1506).
Thanks @rbu for reporting and thanks @sirosen for the fix
(#1745).
- Release 3.11.0
* Add fields.IPInterface, fields.IPv4Interface, and
IPv6Interface (#1733). Thanks @madeinoz67 for the suggestion
and the PR.
* Raise AttributeError for missing methods when using fields.
Method (#1675). Thanks @lassandroan.
* Remove unnecessary hasattr and getattr checks in Field (#1770).
- Release 3.10.0
* Passing field metadata via keyword arguments is deprecated and
will be removed in marshmallow 4 (#1350). Use the explicit
metadata=... argument instead. Thanks @sirosen.
- Release 3.9.1
* Cast to mapping type in Mapping.serialize and Mapping.
deserialize (#1685).
* Fix bug letting Dict pass invalid dict on deserialization when
no key or value Field is specified (#1685).
- Release 3.9.0
* Add format argument to fields.Time and timeformat class Meta
option (#686). Thanks @BennyAlex for the suggestion and thanks
@infinityxxx for the PR.
* Remove usage of implicit typing.Optional (#1663). Thanks
@nadega for the PR.
- Release 3.8.0
* Add fields.IP, fields.IPv4 and fields.IPv6 (#1485). Thanks
@mgetka for the PR.
* Fix typing in AwareDateTime (#1658). Thanks @adithyabsk for
OBS-URL: https://build.opensuse.org/request/show/887532
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=29
- version update to 3.5.1
- Includes bug fix from 2.21.0.
- Fix list of nullable nested fields ``List(Nested(Field, allow_none=True)``
(:issue:`1497`). Because this fix reverts an optimization introduced to
speed-up serialization and deserialization of lists of nested fields, a
negative impact on performance in this specific case is expected.
- Improve type coverage (:issue:`1479`). Thanks :user:`Reskov`.
- Fix typing for ``data`` param of ``Schema.load`` and ``ValidationError`` (:issue:`1492`).
Thanks :user:`mehdigmira` for reporting and thanks :user:`dfirst` for the PR.
- Remove unnecessary typecasts (:pr:`1500`). Thanks :user:`hukkinj1`.
- Remove useless ``_serialize`` override in ``UUID`` field (:pr:`1489`).
- ``fields.Nested`` may take a callable that returns a schema instance.
Use this to resolve order-of-declaration issues when schemas nest each other (:issue:`1146`).
- Passing the string ``"self"`` to ``fields.Nested`` is deprecated.
Use a callable instead.
- Fix typing for ``Number._format_num`` (:pr:`1466`). Thanks :user:`hukkinj1`.
- Make mypy stricter and remove dead code (:pr:`1467`). Thanks again, :user:`hukkinj1`.
OBS-URL: https://build.opensuse.org/request/show/790506
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=25
- Update to 2.19.5:
* Fix deserializing ISO8601-formatted datetimes with less than 6-digit miroseconds (:issue:`1251`). Thanks :user:`diego-plan9` for reporting.
* Microseconds no longer gets lost when deserializing datetimes without dateutil installed (:issue:`1147`).
* Fix bug where nested fields in Meta.exclude would not work on multiple instantiations (:issue:`1212`). Thanks :user:`MHannila` for reporting.
OBS-URL: https://build.opensuse.org/request/show/718109
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-marshmallow?expand=0&rev=7
* Fix deserializing ISO8601-formatted datetimes with less than 6-digit miroseconds (:issue:`1251`). Thanks :user:`diego-plan9` for reporting.
* Microseconds no longer gets lost when deserializing datetimes without dateutil installed (:issue:`1147`).
* Fix bug where nested fields in Meta.exclude would not work on multiple instantiations (:issue:`1212`). Thanks :user:`MHannila` for reporting.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-marshmallow?expand=0&rev=13