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
The same thing happens with Arrays and their Values.
Expected Behaviour
Can be seen in the test failure:
When adding an element the comma is added on the same line as the previous element.
The closing bracket is not moved from it's initial position
In general I think this is a styling issue, which I understand is not supported for json? I could not find any json.style.* classes, pretty sure TabsAndIndentsStyle for xml solves this issue. CMIIW. Thanks 🙂
The text was updated successfully, but these errors were encountered:
What version of OpenRewrite are you using?
Context
I have created a recipe that adds key+value into a json. It is done via
Json.Literal
and is inspired byjson.ChangeValue
. Here's the relevant code:Problem
My test:
fails with:
The same thing happens with Arrays and their Values.
Expected Behaviour
Can be seen in the test failure:
In general I think this is a styling issue, which I understand is not supported for json? I could not find any
json.style.*
classes, pretty sureTabsAndIndentsStyle
for xml solves this issue. CMIIW. Thanks 🙂The text was updated successfully, but these errors were encountered: