Fix invalid @Enum value decode
This patch was authored and released by @tanner0101.
Decoding a model with invalid @Enum
or @OptionalEnum
values now throws an error instead of crashing (#351, fixes #350).
Decoding a model with invalid @Enum
or @OptionalEnum
values now throws an error instead of crashing (#351, fixes #350).