Skip to content

Optional Marshmallow integration raises import error #50

@devdupont

Description

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions