Closed ruben-garciapariente closed 3 years ago
Hey @ruben-garciapariente! Good stuff, thanks for logging this, we'll take a look 👍
Also, @ruben-garciapariente -- for the time being, if you set coalesce: false
, you should not get the malformed yaml document. It won't be formatted the same way, but it won't break the yaml document. Hopefully that prevents you or anyone from getting fully stuck
Hey @ruben-garciapariente -- after having merged this PR (https://github.com/openrewrite/rewrite/pull/1132), I tried out the example you provided in https://github.com/ruben-garciapariente/test-openwrite/blob/62825927e1a11268dfdb1f261cb9ac12dc56858e/src/main/resources/config/application.yml and the result looks more appropriate now:
Before:
com:
company:
other:
name: project-test
logging:
kafka:
uniqueTopic: a-topic
#TODO bug pending topic: a-topic #This property disappear
properties:
one.other: true
After:
com.company.other.logging.kafka:
uniqueTopic: a-topic
#TODO bug pending topic: a-topic #This property disappear
properties.one.other: true
This ought to be things taken care of for you. If you try out the latest changes and things aren't to what you're expecting, definitely reach out again and let us know. Thanks again for logging this, it helps 👍
Hi
Thanks for this wonderful proyect :)
I did another test with org.openrewrite.yaml.DeleteProperty and rewrite-maven-plugin:4.13.0
My recepy is
Source yaml is
I did mvn rewrite:run
then I get a malformed yaml
The complete example is in https://github.com/ruben-garciapariente/test-openwrite/tree/62825927e1a11268dfdb1f261cb9ac12dc56858e
Thanks & regards