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
Is there a reason why config retriever merges config JSONs only at depth 1 ?
I have following case where config files is pretty big, so wanted to split it into smaller fragments, and let config retriever to merge it into on. In order to simplify management of configuration of my app, I wanted to split config files into two. For instance, first config file have:
{
"a": {
"b": {
"foo": "bar"
}
}
}
In the second one, I wanted to configure other fields under a.b as follows (so keep "c" configurations in a separate file)
{
"a": {
"c": {
"foo": "bar"
}
}
}
I configure retriever to get those two files (two file stores) and expected to get
But the resulting configuration is the one from the second file. It simply overwrote the object "a" because the retriever does json.mergeIn(JsonObject) so it merges only on the level of "a" object.
Why it cannot do deep merge ? json.mergeIn(JsonObject, true) ?
The text was updated successfully, but these errors were encountered:
Is there a reason why config retriever merges config JSONs only at depth 1 ?
I have following case where config files is pretty big, so wanted to split it into smaller fragments, and let config retriever to merge it into on. In order to simplify management of configuration of my app, I wanted to split config files into two. For instance, first config file have:
In the second one, I wanted to configure other fields under a.b as follows (so keep "c" configurations in a separate file)
I configure retriever to get those two files (two
file
stores) and expected to getBut the resulting configuration is the one from the second file. It simply overwrote the object "a" because the retriever does
json.mergeIn(JsonObject)
so it merges only on the level of "a" object.Why it cannot do deep merge ?
json.mergeIn(JsonObject, true)
?The text was updated successfully, but these errors were encountered: