marshmallow-oneofschema
marshmallow-oneofschema copied to clipboard
Feature request: "Unsupported value" error message - show supported values
Relevant code:
https://github.com/marshmallow-code/marshmallow-oneofschema/blob/a17d5c1493206ebb44664844d36445d5a2a62f5f/marshmallow_oneofschema/one_of_schema.py#L169
Rather than "Unsupported value: 'foo'"
, I'd like to show the supported values, similar to how Marshmallow's OneOf
field type shows Must be one of: FOO
.