Skip to content

Introduce in-place array merging #1

@OndraZizka

Description

@OndraZizka

Sometimes, the array items should be written into based on the index rather than added to the other array.
There should be an option for choosing between modes, like -DarrayMerge=(append|index|<mapKey>). Or perhaps the YAML could contain some metavalues, like:

foo:
- content: this will be overwritten
- content: this will stay
---
foo:
- yamlMerge.mode: index
  content: a new value for array[0]

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions