We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
An OTP app config with nested data structs evaluates to nil if at least one entry specifies system env var that is not set.
nil
config :my_app, var: [ foo: {:system, :string, "FOO"}, bar: "bar-value" ]
iex> Confex.get_env(:my_app, :var) [ foo: nil, bar: "bar-value" ]
iex> Confex.get_env(:my_app, :var) [ bar: "bar-value" ]
iex> Confex.get_env(:my_app, :var) nil
Use 4 element tuple with a default value of nil
config :my_app, var: [ foo: {:system, :string, "FOO", nil}, bar: "bar-value" ] #### iex> Confex.get_env(:my_app, :var) [ foo: nil, bar: "bar-value" ]
The text was updated successfully, but these errors were encountered:
No branches or pull requests
An OTP app config with nested data structs evaluates to
nil
if at least one entry specifies system env var that is not set.Example:
Expected:
Less expected, but still meaningful:
Actual:
Workaround:
Use 4 element tuple with a default value of nil
The text was updated successfully, but these errors were encountered: