Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add ErrorUnset option to DecoderConfig and Unset array to Metddata
This commit extends the DecoderConfig with an option to fail decoding if there exist fields in the target struct, which haven't been set during decoding due to a missing, corresponding value in the input map. Accordingly, the Metadata has been extended with an Unset array to receive all field names which have not been set during decoding.
- Loading branch information
1 parent
95075d6
commit d91ccce
Showing
2 changed files
with
68 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters