currently, data from multiple file variables are shallow-merged together, which is to say that if two data files each define a mapping/object with the same name and different keys, the mapping/object in the second data file replaces the mapping/object in the first file.
Ex: file1.json
{
"key1": "value1",
"key2": {
"subkey1": "value"
},
"key3": "value"
}
file2.json
{
"key1": "value2",
"key2": {
"subkey2": "value"
}
}
Results in:
{
"key1": "value2",
"key2": {
"subkey2": "value"
},
"key3": "value"
}
It would be nice if it instead resulted in
{
"key1": "value2",
"key2": {
"subkey1": "value",
"subkey2": "value"
},
"key3": "value"
}
currently, data from multiple file variables are shallow-merged together, which is to say that if two data files each define a mapping/object with the same name and different keys, the mapping/object in the second data file replaces the mapping/object in the first file.
Ex: file1.json
{ "key1": "value1", "key2": { "subkey1": "value" }, "key3": "value" }file2.json
{ "key1": "value2", "key2": { "subkey2": "value" } }Results in:
{ "key1": "value2", "key2": { "subkey2": "value" }, "key3": "value" }It would be nice if it instead resulted in
{ "key1": "value2", "key2": { "subkey1": "value", "subkey2": "value" }, "key3": "value" }