dataclasses-jsonschema
dataclasses-jsonschema copied to clipboard
Add check that literal values are valid to decode_field
Adds an explicit check that a literal field has a valid value when decoding. This will improve decoding when types in a Union have overlapping fields but may be discriminated by a literal.
Fix for https://github.com/s-knibbs/dataclasses-jsonschema/issues/163
@s-knibbs Looks like I can't add you as an assignee, but hope this looks good!
Fixes #163
@s-knibbs updated re: your feedback