You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
All keys are case-sensitive inside koanf's confmap, but the mapstructure lib that it uses to unmarshal the keys into struct does ~fuzzy matching of names on struct field tags. To enforce, case sensitivity there, you can pass a matcher function to mapstructure's DecoderConfig.
Koanf version 1.4.4
I have a yaml conf like this :
which I load with :
If I change "name" to "Name", the value "toto" is still parsed into env.Name !
However, if i register default values first
Then the case sensitive is working as expected, and env.Name remains empty .
The text was updated successfully, but these errors were encountered: