fuhrysteve / marshmallow-jsonschema

JSON Schema Draft v7 (http://json-schema.org/) formatting with marshmallow
MIT License
209 stars 72 forks source link

marshmallow-jsonschema is not compatible with `marshmallow.fields.Enum` added in marshmallow v3.18.0 #169

Open hf-kklein opened 2 years ago

hf-kklein commented 2 years ago

marshmallow_jsonschema.exceptions.UnsupportedValueError: unsupported field type <fields.Enum(dump_default=, attribute=None, validate=None, required=False, load_only=False, dump_only=False, load_default=, allow_none=False, error_messages={'required': 'Missing data for required field.', 'null': 'Field may not be null.', 'validator_failed': 'Invalid value.', 'unknown': 'Must be one of: {choices}.'})>

See changelog: https://github.com/marshmallow-code/marshmallow/blob/dev/CHANGELOG.rst#3180-2022-09-15

hf-kklein commented 2 years ago

I opened a PR that fixes this issue: #170