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
it can be accessed by conf.get('settingA:attributeA'). I wish to override just this value in any other file. This is not working for obvious reasons (overrides entire setting):
{
"settingA": {
"attributeA": "localValueA"
}
}
But there is a syntax which isn't used and could work well:
{
"settingA:attributeA": "localValueA"
}
Please tell me it's sane and if I'm using your lib in the right way.
The text was updated successfully, but these errors were encountered:
This is by design. There is no way exposed to force the hierarchy to not merge objects from various providers. To work around this in the config you wish to use to override entirely put:
It's not failing but I came across something very similar and thought it was a bug but turned out it was an issue on my end. Me writing that test was a way for me to confirm it was my issue 👍
I'm trying to provide several configuration files which are overriding each other
config-default.json
's settings are overriden byconfig-{DEV_ENV}.json
and these byconfig-local.json
I'm using this:
It's working well, however I'm unable to override parts of the object:
if
config-default.json
has a settingsettingA
defined in such way:it can be accessed by
conf.get('settingA:attributeA')
. I wish to override just this value in any other file. This is not working for obvious reasons (overrides entire setting):But there is a syntax which isn't used and could work well:
Please tell me it's sane and if I'm using your lib in the right way.
The text was updated successfully, but these errors were encountered: