Skip to content

Would be nice to have a deepmerge data source that works with objects, not yaml/json strings #462

@mm-chia

Description

@mm-chia

Describe the Feature

This would be a generic deepmerge data source, which works with objects as inputs.
Thus, it could be used for merging either yaml or json, (by applying yamldecode/jsondecode to the files, before passing them as inputs to this data source).
Furthermore, it would be more flexible data source (essentially, rendering the other two data sources obsolete).
Using this new data source, one can have more flexibility - merge objects coming from different places / different files, etc.

Expected Behavior

Missing feature

Use Case

Allows more flexibility over inputs used for deep merge.

Describe Ideal Solution

A generic deep merge data source which works with objects as inputs, not json/yaml strings.

Alternatives Considered

No response

Additional Context

Currently using isometry/deepmerge because of flexibility but would like to switch to cloudposse/utils

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