Fine-grained decoding errors
Decoding errors now have types for more comprehensive error reporting:
UnknownKeyError
is returned when an unknown key is encountered in the source map and the decoder is not set to ignore unknown keys.EmptyFieldError
is returned when a required field is empty.
Both error types have a Key
attribute that can be inspected to determine the field that caused the error.