From 93b89ef52d1d888479088819c832a1d1bfb21c96 Mon Sep 17 00:00:00 2001 From: Mirek Simek Date: Wed, 21 Aug 2024 11:35:34 +0200 Subject: [PATCH] Fixed marshmallow backward incompatible change --- oarepo_model_builder/datatypes/containers/object.py | 2 +- setup.cfg | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/oarepo_model_builder/datatypes/containers/object.py b/oarepo_model_builder/datatypes/containers/object.py index d9372acc..d648143b 100644 --- a/oarepo_model_builder/datatypes/containers/object.py +++ b/oarepo_model_builder/datatypes/containers/object.py @@ -34,7 +34,7 @@ def get_obj_type(self, obj): def load(self, data, *, many=None, partial=None, unknown=None, **kwargs): # OneOfSchema does not call pre-load actions, so add it here explicitly - if self._has_processors(ma.decorators.PRE_LOAD): + if ma.decorators.PRE_LOAD in self._hooks: try: processed_data = self._invoke_load_processors( ma.decorators.PRE_LOAD, diff --git a/setup.cfg b/setup.cfg index e78ef056..5c1716db 100644 --- a/setup.cfg +++ b/setup.cfg @@ -1,6 +1,6 @@ [metadata] name = oarepo-model-builder -version = 4.0.87 +version = 4.0.88 description = A utility library that generates OARepo required data model files from a JSON specification file authors = Miroslav Bauer , Miroslav Simek readme = README.md @@ -25,7 +25,7 @@ install_requires = libcst>=0.3.19 tomlkit>=0.7.2 importlib_metadata>=4.0.0 - marshmallow + marshmallow>=3.22.0 marshmallow-union marshmallow-oneofschema autoflake