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
If we have a prefix called "env_config" and the following struct tags for property "Foo", we should expect to see an error message stating that the required env var "ENV_CONFIG_BAR" is missing and not just "BAR" since that is the environment variable being looked up.
# With prefix configured as "env_config", the variable being looked up is "ENV_CONFIG_BAR".
type Spec struct {
Foo string `envconfig:"bar" required:"true"`
}
Currently, the error message being reported is required key BAR missing value.
It should be required key ENV_CONFIG_BAR missing value since that's the variable being looked up.
The text was updated successfully, but these errors were encountered:
If we have a prefix called "env_config" and the following struct tags for property "Foo", we should expect to see an error message stating that the required env var "ENV_CONFIG_BAR" is missing and not just "BAR" since that is the environment variable being looked up.
Currently, the error message being reported is
required key BAR missing value
.It should be
required key ENV_CONFIG_BAR missing value
since that's the variable being looked up.The text was updated successfully, but these errors were encountered: