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
{{ message }}
Repository navigation
How does Figment Env provider handle fields with underscores?
#150
I'm trying to figure out how figment handles fields with underscores. For example:
structFoo{bar:Bar}sturctBar{baz_buz: bool
}
I have fig.admerge(Env::prefixed("APP_").split("_")), but I can't seem to figure out how to access this. APP_BAR_BAZ_BUZ doesn't hit, neither does APP_BAR='{"baz_buz":true}'. In general I'm just confused how figment handles these as nothing I've tried worked (i.e. removing the underscore, mapping it to a nested object, trying a . or -, etc, etc)
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I'm trying to figure out how figment handles fields with underscores. For example:
I have
fig.admerge(Env::prefixed("APP_").split("_")), but I can't seem to figure out how to access this.APP_BAR_BAZ_BUZdoesn't hit, neither doesAPP_BAR='{"baz_buz":true}'. In general I'm just confused how figment handles these as nothing I've tried worked (i.e. removing the underscore, mapping it to a nested object, trying a.or-, etc, etc)All reactions