marshmallow-oneofschema icon indicating copy to clipboard operation
marshmallow-oneofschema copied to clipboard

Feature request: "Unsupported value" error message - show supported values

Open adamtheturtle opened this issue 3 years ago • 0 comments

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.

adamtheturtle avatar Mar 08 '21 18:03 adamtheturtle