diff --git a/brewtils/schema_parser.py b/brewtils/schema_parser.py index 3c42607b..6853a700 100644 --- a/brewtils/schema_parser.py +++ b/brewtils/schema_parser.py @@ -6,7 +6,6 @@ import six # type: ignore from box import Box # type: ignore -from marshmallow import ValidationError import brewtils.models import brewtils.schemas @@ -561,9 +560,8 @@ def parse( schema = getattr(brewtils.schemas, model_class.schema)(**kwargs) schema.context["models"] = cls._models - + return schema.loads(data) if from_string else schema.load(data) - # Serialization methods @classmethod