Custom functions are not running for values from files #75
Labels
bug
Something isn't working
good first issue
Good for newcomers
help wanted
Extra attention is needed
I've noticed that when reading a config file with a field that is not available in env, its custom function won't run.
The reason seems to be that for these kind of fields,
parseValue
won't be called and therefore the corresponding custom function.Custom functions runs only if the field was provided as an env argument or with a zero'ed value:
cleanenv/cleanenv.go
Line 309 in ce3ee7f
cleanenv/cleanenv.go
Line 321 in ce3ee7f
The text was updated successfully, but these errors were encountered: