mitchellh / mapstructure

Go library for decoding generic map values into native Go structures and vice versa.
https://gist.github.com/mitchellh/90029601268e59a29e64e55bab1c5bdc
MIT License
7.93k stars 677 forks source link

ErrorUnset conflicts with UntaggedFields #350

Open mateusoliveira43 opened 11 months ago

mateusoliveira43 commented 11 months ago

If I use ErrorUnset = true and add mapstructure:"-" to my struct field, I get the following error:

* '' has unset fields: -

But since that field is ignored, it should not trigger an error, right?

Also tried using with IgnoreUntaggedFields = true, but got the same result