Skip to content

Deep object merging #20

@sailorgeoffrey

Description

@sailorgeoffrey

As config is basically a tree of maps, we should be able to merge configurations at. multiple levels. For example common config in default.json should be merged with envy specific config in staging. Jason

Default.json:
{
db: {
driver: "MySQL"
}
}

Staging.json:
{
db: {
host: "staging.foo.com"
}
}

config.get("db") == {
host: "staging.foo.com",
driver: "MySQL"
}

For simplicity matching keys can be overwritten.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions