mapstructure icon indicating copy to clipboard operation
mapstructure copied to clipboard

ErrorUnset conflicts with UntaggedFields

Open mateusoliveira43 opened this issue 2 years ago • 0 comments

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

mateusoliveira43 avatar Dec 24 '23 18:12 mateusoliveira43