org.openrewrite.yaml.DeleteProperty Delete a YAML property. Nested YAML mappings are interpreted as dot separated property names, i.e. as Spring Boot interprets application.yml files like
- groupId: org.openrewrite
- artifactId: rewrite-yaml
- version: 7.38.0
The key to be deleted.
Optional. (Deprecated: in a future version, this recipe will always use the
Optional. Whether to match the
Optional. Matching files will be modified. This is a glob expression.
This recipe has required configuration parameters. Recipes with required configuration parameters cannot be activated directly. To activate this recipe you must create a new recipe which fills in the required parameters. In your
rewrite.ymlcreate a new recipe with a unique name. For example:
com.yourorg.DeletePropertyExample. Here's how you can define and customize such a recipe within your rewrite.yml:
displayName: Delete property example
com.yourorg.DeletePropertyExamplehas been defined activate it in your build file:
The Moderne public SaaS instance enables you to easily run recipes across thousands of open-source repositories.
Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.