mapstructure icon indicating copy to clipboard operation
mapstructure copied to clipboard

Bug: Using ErrorUnset and IgnoreUntaggedFields together

Open pulledtim opened this issue 2 years ago • 0 comments

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?

pulledtim avatar Apr 25 '23 11:04 pulledtim