Skip to content

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

Open
@alextremblay

Description

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"
}

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions