mapstructure
mapstructure copied to clipboard
Bug: Using ErrorUnset and IgnoreUntaggedFields together
When using the DecoderConfig.ErrorUnset together with DecoderConfig.IgnoreUntaggedFields while having a untagged field results in an error, as the field remains unset.
The test
https://github.com/pulledtim/mapstructure/commit/64dc62a5d0b5ac68b6e467898727fb0629d10945
fails with
* '' has unset fields: Unrelated
Is that an expected behavior or would you accept a PR for that?