You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
List(Nested(...)) has been improved to have the same validation and performance characteristics asNested(many=True) (List(Nested) was previously slower due to Nested(many=True) taking an optimized path)
It's worth knowing that marshmallow 3 only supports Python 3. So you'd need to drop support for 2.7 in order to upgrade. Join the party https://python3statement.org/ ! 😄
The text was updated successfully, but these errors were encountered:
👋 Just dropping by to let you know that marshmallow v3 is released.
Upgrading will provide a few benefits for boundary-layer:
StrictSchema
. v3 has first-class support for unknown field validation, and the default behavior matchesStrictSchema
: https://marshmallow.readthedocs.io/en/stable/quickstart.html#handling-unknown-fieldsList(Nested(...))
has been improved to have the same validation and performance characteristics asNested(many=True)
(List(Nested) was previously slower due toNested(many=True)
taking an optimized path)boundary-layer/boundary_layer/schemas/dag.py
Lines 87 to 89 in 9b09956
load_from
anddump_to
match, since they've been merged into a single parameter,data_key
.boundary-layer/boundary_layer_default_plugin/oozie_actions.py
Lines 86 to 87 in 5e52e1c
I've only skimmed the boundary-layer code, but it looks like the migration should be relatively straightforward.
data_key
instead instead ofload_from
anddump_to
..load
and.dump
to handle ValidationError and expect the (de)serialized data dictionary to be returned.**kwargs
to decorated methods.A full upgrading guide is here: https://marshmallow.readthedocs.io/en/latest/upgrading.html
It's worth knowing that marshmallow 3 only supports Python 3. So you'd need to drop support for 2.7 in order to upgrade. Join the party https://python3statement.org/ ! 😄
The text was updated successfully, but these errors were encountered: