The swagger.py file is raising a missing import error when importing the optional Marshmallow support.
from .marshmallow import MARSHMALLOW, schema_to_json
The issue is that schema_to_json is not available when the marshmallow and marshmallow_jsonschema libs raise an ImportError:
except ImportError:
Schema = None
JSONSchema = None
MarshmallowValidationError = None
MARSHMALLOW = False
# No replacement for schema_to_json
The
swagger.pyfile is raising a missing import error when importing the optional Marshmallow support.from .marshmallow import MARSHMALLOW, schema_to_jsonThe issue is that
schema_to_jsonis not available when themarshmallowandmarshmallow_jsonschemalibs raise an ImportError: