This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch camel-4.18.x
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/camel-4.18.x by this push:
new 4a1f5e1d374c CAMEL-23103: camel-json-patch - Deprecate
4a1f5e1d374c is described below
commit 4a1f5e1d374c75097985c830a541c19e7dcdcdac
Author: Claus Ibsen <[email protected]>
AuthorDate: Sat Feb 28 08:57:03 2026 +0100
CAMEL-23103: camel-json-patch - Deprecate
---
.../resources/org/apache/camel/catalog/components/json-patch.json | 2 +-
components/camel-json-patch/pom.xml | 2 +-
.../META-INF/org/apache/camel/component/jsonpatch/json-patch.json | 2 +-
.../META-INF/services/org/apache/camel/component.properties | 2 +-
components/camel-json-patch/src/main/docs/json-patch-component.adoc | 5 +++--
.../org/apache/camel/builder/endpoint/StaticEndpointBuilders.java | 2 ++
.../camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java | 3 +++
7 files changed, 12 insertions(+), 6 deletions(-)
diff --git
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/json-patch.json
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/json-patch.json
index 8ad1b9b5765d..f7611bee2218 100644
---
a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/json-patch.json
+++
b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/json-patch.json
@@ -4,7 +4,7 @@
"name": "json-patch",
"title": "JsonPatch",
"description": "Transforms JSON using JSON patch (RFC 6902).",
- "deprecated": false,
+ "deprecated": true,
"firstVersion": "3.12.0",
"label": "transformation",
"javaType": "org.apache.camel.component.jsonpatch.JsonPatchComponent",
diff --git a/components/camel-json-patch/pom.xml
b/components/camel-json-patch/pom.xml
index e8e52d0f83e0..6ebc77cbfa2b 100644
--- a/components/camel-json-patch/pom.xml
+++ b/components/camel-json-patch/pom.xml
@@ -28,7 +28,7 @@
<artifactId>camel-json-patch</artifactId>
<packaging>jar</packaging>
- <name>Camel :: JsonPatch</name>
+ <name>Camel :: JsonPatch (deprecated)</name>
<description>Camel JsonPatch Component</description>
<dependencies>
diff --git
a/components/camel-json-patch/src/generated/resources/META-INF/org/apache/camel/component/jsonpatch/json-patch.json
b/components/camel-json-patch/src/generated/resources/META-INF/org/apache/camel/component/jsonpatch/json-patch.json
index 8ad1b9b5765d..f7611bee2218 100644
---
a/components/camel-json-patch/src/generated/resources/META-INF/org/apache/camel/component/jsonpatch/json-patch.json
+++
b/components/camel-json-patch/src/generated/resources/META-INF/org/apache/camel/component/jsonpatch/json-patch.json
@@ -4,7 +4,7 @@
"name": "json-patch",
"title": "JsonPatch",
"description": "Transforms JSON using JSON patch (RFC 6902).",
- "deprecated": false,
+ "deprecated": true,
"firstVersion": "3.12.0",
"label": "transformation",
"javaType": "org.apache.camel.component.jsonpatch.JsonPatchComponent",
diff --git
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component.properties
b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component.properties
index 736902c5c47e..9158e45f30ed 100644
---
a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component.properties
+++
b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component.properties
@@ -3,5 +3,5 @@ components=json-patch
groupId=org.apache.camel
artifactId=camel-json-patch
version=4.18.1-SNAPSHOT
-projectName=Camel :: JsonPatch
+projectName=Camel :: JsonPatch (deprecated)
projectDescription=Camel JsonPatch Component
diff --git
a/components/camel-json-patch/src/main/docs/json-patch-component.adoc
b/components/camel-json-patch/src/main/docs/json-patch-component.adoc
index 65bbe5f14144..efe33de2c096 100644
--- a/components/camel-json-patch/src/main/docs/json-patch-component.adoc
+++ b/components/camel-json-patch/src/main/docs/json-patch-component.adoc
@@ -1,10 +1,11 @@
-= JsonPatch Component
+= JsonPatch Component (deprecated)
:doctitle: JsonPatch
:shortname: json-patch
:artifactid: camel-json-patch
:description: Transforms JSON using JSON patch (RFC 6902).
:since: 3.12
-:supportlevel: Stable
+:supportlevel: Stable-deprecated
+:deprecated: *deprecated*
:tabs-sync-option:
:component-header: Only producer is supported
//Manually maintained attributes
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 97500a348835..dc8a4503bc5b 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -8906,6 +8906,7 @@ public class StaticEndpointBuilders {
* @param path resourceUri
* @return the dsl builder
*/
+ @Deprecated
public static JsonPatchEndpointBuilderFactory.JsonPatchEndpointBuilder
jsonPatch(String path) {
return jsonPatch("json-patch", path);
}
@@ -8933,6 +8934,7 @@ public class StaticEndpointBuilders {
* @param path resourceUri
* @return the dsl builder
*/
+ @Deprecated
public static JsonPatchEndpointBuilderFactory.JsonPatchEndpointBuilder
jsonPatch(String componentName, String path) {
return JsonPatchEndpointBuilderFactory.endpointBuilder(componentName,
path);
}
diff --git
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java
index c77213d0ccb5..6936698648e6 100644
---
a/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java
+++
b/dsl/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java
@@ -221,6 +221,7 @@ public interface JsonPatchEndpointBuilderFactory {
*
* @return the dsl builder for the headers' name.
*/
+ @Deprecated
default JsonPatchHeaderNameBuilder jsonPatch() {
return JsonPatchHeaderNameBuilder.INSTANCE;
}
@@ -247,6 +248,7 @@ public interface JsonPatchEndpointBuilderFactory {
* @param path resourceUri
* @return the dsl builder
*/
+ @Deprecated
default JsonPatchEndpointBuilder jsonPatch(String path) {
return
JsonPatchEndpointBuilderFactory.endpointBuilder("json-patch", path);
}
@@ -275,6 +277,7 @@ public interface JsonPatchEndpointBuilderFactory {
* @param path resourceUri
* @return the dsl builder
*/
+ @Deprecated
default JsonPatchEndpointBuilder jsonPatch(String componentName,
String path) {
return
JsonPatchEndpointBuilderFactory.endpointBuilder(componentName, path);
}