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
Hi! Sounds like you want to insert a specific key into each element matching your wildcard key, correct?
I'm not seeing such a scenario in our existing test coverage yet, but it should be easy to replicate there.
Then you could even step through with the debugger to see if there's an easy fix in the MergeYaml recipe.
Interestingly new JsonPathMatcher("$.a..c").matches(getCursor()) does appear to work as expected in this case.
As the failing scenario in this bug uses a trailing wildcard in the JSON path, it seems reasonably likely that the lack of support for * in JsonPathMatcher is contributing to the error (also because its a trailing wildcard, the use of recursive descent is not available).
I am using
I'm attempting to use the MergeYaml recipe in this scenario:
Old Yaml
New Yaml
I tried using
MergeYaml
with key set to$.list.services.*
and yaml set tobeta: fixedValue
, but it gives me:The text was updated successfully, but these errors were encountered: