diff --git a/rewrite-json/src/main/java/org/openrewrite/json/ChangeKey.java b/rewrite-json/src/main/java/org/openrewrite/json/ChangeKey.java index b9f77351f72..c79e4291695 100644 --- a/rewrite-json/src/main/java/org/openrewrite/json/ChangeKey.java +++ b/rewrite-json/src/main/java/org/openrewrite/json/ChangeKey.java @@ -24,7 +24,7 @@ @EqualsAndHashCode(callSuper = false) public class ChangeKey extends Recipe { @Option(displayName = "Old key path", - description = "A JsonPath expression to locate a JSON entry.", + description = "A [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression to locate a JSON entry.", example = "$.subjects.kind") String oldKeyPath; diff --git a/rewrite-json/src/main/java/org/openrewrite/json/ChangeValue.java b/rewrite-json/src/main/java/org/openrewrite/json/ChangeValue.java index 017fa06b230..3067796822c 100644 --- a/rewrite-json/src/main/java/org/openrewrite/json/ChangeValue.java +++ b/rewrite-json/src/main/java/org/openrewrite/json/ChangeValue.java @@ -30,7 +30,7 @@ @EqualsAndHashCode(callSuper = false) public class ChangeValue extends Recipe { @Option(displayName = "Key path", - description = "A JsonPath expression to locate a JSON entry.", + description = "A [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression to locate a JSON entry.", example = "$.subjects.kind") String oldKeyPath; diff --git a/rewrite-json/src/main/java/org/openrewrite/json/DeleteKey.java b/rewrite-json/src/main/java/org/openrewrite/json/DeleteKey.java index dc6b5042ba7..94421cd7a35 100644 --- a/rewrite-json/src/main/java/org/openrewrite/json/DeleteKey.java +++ b/rewrite-json/src/main/java/org/openrewrite/json/DeleteKey.java @@ -27,8 +27,9 @@ @Value @EqualsAndHashCode(callSuper = false) public class DeleteKey extends Recipe { + @Option(displayName = "Key path", - description = "A JsonPath expression to locate a JSON entry.", + description = "A [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression to locate a JSON entry.", example = "$.subjects.kind") String keyPath; diff --git a/rewrite-yaml/src/main/java/org/openrewrite/yaml/AppendToSequence.java b/rewrite-yaml/src/main/java/org/openrewrite/yaml/AppendToSequence.java index ff75c7fa0e8..51fc84d13a5 100644 --- a/rewrite-yaml/src/main/java/org/openrewrite/yaml/AppendToSequence.java +++ b/rewrite-yaml/src/main/java/org/openrewrite/yaml/AppendToSequence.java @@ -28,8 +28,8 @@ @Value @EqualsAndHashCode(callSuper = false) public class AppendToSequence extends Recipe { - @Option(displayName = "sequence path", - description = "A [JsonPath](https://github.com/json-path/JsonPath) expression to locate a YAML sequence.", + @Option(displayName = "Sequence path", + description = "A [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression to locate a YAML sequence.", example = "$.universe.planets") String sequencePath; diff --git a/rewrite-yaml/src/main/java/org/openrewrite/yaml/ChangeKey.java b/rewrite-yaml/src/main/java/org/openrewrite/yaml/ChangeKey.java index b5dd9406210..94acae2f1ad 100644 --- a/rewrite-yaml/src/main/java/org/openrewrite/yaml/ChangeKey.java +++ b/rewrite-yaml/src/main/java/org/openrewrite/yaml/ChangeKey.java @@ -27,7 +27,7 @@ @EqualsAndHashCode(callSuper = false) public class ChangeKey extends Recipe { @Option(displayName = "Old key path", - description = "A [JsonPath](https://github.com/json-path/JsonPath) expression to locate a YAML entry.", + description = "A [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression to locate a YAML entry.", example = "$.subjects.kind") String oldKeyPath; diff --git a/rewrite-yaml/src/main/java/org/openrewrite/yaml/ChangeValue.java b/rewrite-yaml/src/main/java/org/openrewrite/yaml/ChangeValue.java index cbb4612e2be..b9bb2c79797 100644 --- a/rewrite-yaml/src/main/java/org/openrewrite/yaml/ChangeValue.java +++ b/rewrite-yaml/src/main/java/org/openrewrite/yaml/ChangeValue.java @@ -28,7 +28,7 @@ @EqualsAndHashCode(callSuper = false) public class ChangeValue extends Recipe { @Option(displayName = "Key path", - description = "A [JsonPath](https://github.com/json-path/JsonPath) expression to locate a YAML entry.", + description = "A [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression to locate a YAML entry.", example = "$.subjects.kind") String keyPath; diff --git a/rewrite-yaml/src/main/java/org/openrewrite/yaml/CopyValue.java b/rewrite-yaml/src/main/java/org/openrewrite/yaml/CopyValue.java index 6e13f4e5ad0..5872c443bbf 100644 --- a/rewrite-yaml/src/main/java/org/openrewrite/yaml/CopyValue.java +++ b/rewrite-yaml/src/main/java/org/openrewrite/yaml/CopyValue.java @@ -29,7 +29,7 @@ @EqualsAndHashCode(callSuper = false) public class CopyValue extends ScanningRecipe { @Option(displayName = "Old key path", - description = "A [JsonPath](https://github.com/json-path/JsonPath) expression to locate a YAML key/value pair to copy.", + description = "A [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression to locate a YAML key/value pair to copy.", example = "$.source.kind") String oldKeyPath; @@ -42,7 +42,7 @@ public class CopyValue extends ScanningRecipe { String oldFilePath; @Option(displayName = "New key path", - description = "A [JsonPath](https://github.com/json-path/JsonPath) expression defining where the value should be written.", + description = "A [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression defining where the value should be written.", example = "$.dest.kind") String newKey; diff --git a/rewrite-yaml/src/main/java/org/openrewrite/yaml/DeleteKey.java b/rewrite-yaml/src/main/java/org/openrewrite/yaml/DeleteKey.java index c8467bfbb44..bae075dac6f 100644 --- a/rewrite-yaml/src/main/java/org/openrewrite/yaml/DeleteKey.java +++ b/rewrite-yaml/src/main/java/org/openrewrite/yaml/DeleteKey.java @@ -28,7 +28,7 @@ @EqualsAndHashCode(callSuper = false) public class DeleteKey extends Recipe { @Option(displayName = "Key path", - description = "A [JsonPath](https://github.com/json-path/JsonPath) expression to locate a YAML entry.", + description = "A [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression to locate a YAML entry.", example = "$.source.kind") String keyPath; diff --git a/rewrite-yaml/src/main/java/org/openrewrite/yaml/MergeYaml.java b/rewrite-yaml/src/main/java/org/openrewrite/yaml/MergeYaml.java index e4cff9e45d1..de935f1e51c 100644 --- a/rewrite-yaml/src/main/java/org/openrewrite/yaml/MergeYaml.java +++ b/rewrite-yaml/src/main/java/org/openrewrite/yaml/MergeYaml.java @@ -27,7 +27,7 @@ @EqualsAndHashCode(callSuper = false) public class MergeYaml extends Recipe { @Option(displayName = "Key path", - description = "A [JsonPath](https://github.com/json-path/JsonPath) expression used to find matching keys.", + description = "A [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression used to find matching keys.", example = "$.metadata") String key; diff --git a/rewrite-yaml/src/main/java/org/openrewrite/yaml/search/FindKey.java b/rewrite-yaml/src/main/java/org/openrewrite/yaml/search/FindKey.java index f85baff59ee..a4e3ecebeba 100644 --- a/rewrite-yaml/src/main/java/org/openrewrite/yaml/search/FindKey.java +++ b/rewrite-yaml/src/main/java/org/openrewrite/yaml/search/FindKey.java @@ -44,7 +44,7 @@ public String getDisplayName() { @Override public String getDescription() { - return "Find YAML entries that match the specified [JsonPath](https://github.com/json-path/JsonPath) expression."; + return "Find YAML entries that match the specified [JsonPath](https://docs.openrewrite.org/reference/jsonpath-and-jsonpathmatcher-reference) expression."; } @Override