dataclasses-json
dataclasses-json copied to clipboard
Added in a more user-friendly error message for when a field is missi…
Previously this code was just crashing if I attempted to decode JSON with a field missing. Now it will crash with an error message that indicates more precisely what is actually happening.
@genixpro looks like this breaks the test suite:
raise TypeError( f"The JSON data is missing the required field '{field.name}' when decoding {cls.name} from JSON." )
Maybe you can have a look why?