Skip to content
New issue

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

Feature Request: Deep-merge data from multiple files #68

Open
alextremblay opened this issue Aug 28, 2020 · 0 comments
Open

Feature Request: Deep-merge data from multiple files #68

alextremblay opened this issue Aug 28, 2020 · 0 comments

Comments

@alextremblay
Copy link

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"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant