I am using
- OpenRewrite v1.19.4
- Maven plugin org.openrewrite.maven:rewrite-maven-plugin:4.46.0
I'm attempting to use the MergeYaml recipe in this scenario:
Old Yaml
list:
services:
foo:
alpha: randomValue1
bar:
alpha: randomValue2
New Yaml
list:
services:
foo:
alpha: randomValue1
beta: fixedValue
bar:
alpha: randomValue2
beta: fixedValue
I tried using MergeYaml with key set to $.list.services.* and yaml set to beta: fixedValue, but it gives me:
list:
services:
foo:
alpha: randomValue1
bar:
alpha: randomValue2
beta: fixedValue
I am using
I'm attempting to use the MergeYaml recipe in this scenario:
Old Yaml
New Yaml
I tried using
MergeYamlwith key set to$.list.services.*and yaml set tobeta: fixedValue, but it gives me: