diff --git a/rewrite-yaml/src/main/java/org/openrewrite/yaml/CreateYamlFile.java b/rewrite-yaml/src/main/java/org/openrewrite/yaml/CreateYamlFile.java index 157cb2f7db3..adbcf45ecd0 100644 --- a/rewrite-yaml/src/main/java/org/openrewrite/yaml/CreateYamlFile.java +++ b/rewrite-yaml/src/main/java/org/openrewrite/yaml/CreateYamlFile.java @@ -46,7 +46,10 @@ public class CreateYamlFile extends ScanningRecipe { @Language("yml") @Option(displayName = "File contents", description = "Multiline text content for the file.", - example = "a:\nproperty: value\nanother:\nproperty: value", + example = "a:\n" + + " property: value\n" + + "another:\n" + + " property: value", required = false) @Nullable String fileContents;