You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to use MergeYaml recipe of open-rewrite following the example shared here - https://docs.openrewrite.org/recipes/yaml/mergeyaml
But this is not working and I keep getting error mentioned below
What version of OpenRewrite are you using?
I am using
Maven plugin v5.46.1
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a single module project.
[INFO] Using active recipe(s) [com.yourorg.MergeYamlExample]
[INFO] Using active styles(s) []
[INFO] Validating active recipes...
[ERROR] Recipe validation error in org.openrewrite.yaml.MergeYaml: Unable to load Recipe: java.lang.IllegalArgumentException: Cannot deserialize value of type `java.lang.String` from Object value (token `JsonToken.START_OBJECT`)
at [Source: UNKNOWN; byte offset: #UNKNOWN] (through reference chain: org.openrewrite.yaml.MergeYaml["yaml"])
[ERROR] Recipe validation errors detected as part of one or more activeRecipe(s). Execution will continue regardless.
Got it working by using yaml folded style. Can someone please confirm if the documentation needs to be corrected. I will be more than happy to open a PR.
I am trying to use MergeYaml recipe of open-rewrite following the example shared here - https://docs.openrewrite.org/recipes/yaml/mergeyaml
But this is not working and I keep getting error mentioned below
What version of OpenRewrite are you using?
I am using
How are you running OpenRewrite?
I am using the Maven plugin, and my project is a single module project.
What is the smallest, simplest way to reproduce the problem?
Below is the content of my
rewrite.yml
And this is my
test.yml
(where the recipe would run and make changes adding lastName: kumar at the end of the file)What did you expect to see?
What did you see instead?
I see below error
Are you interested in contributing a fix to OpenRewrite?
The text was updated successfully, but these errors were encountered: