You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ac...@apache.org on 2021/08/24 16:22:03 UTC

[camel] branch main updated (90e414f -> d459ab0)

This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a change to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git.


    from 90e414f  Regen for commit 0c4f012bd0948b5e895fde7359a85aa2a4b36212
     new 501e7fb  CAMEL-13590 First version json-patch component
     new 2bcf86d  CAMEL-13590 First version json-patch component - added docs
     new 6a67be4  CAMEL-13590 First version json-patch component - Fixed BOM
     new a2a000c7 CAMEL-13590 First version json-patch component - Regen
     new d5a7069  CAMEL-13590 First version json-patch component - Regen
     new d459ab0  Regen

The 6 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.


Summary of changes:
 bom/camel-bom/pom.xml                              |   5 +
 .../org/apache/camel/catalog/components.properties |   1 +
 .../camel/catalog/components/json-patch.json       |  34 ++++
 components/camel-json-patch/pom.xml                |  53 +++++
 .../jsonpatch/JsonPatchComponentConfigurer.java    |  55 +++++
 .../jsonpatch/JsonPatchEndpointConfigurer.java     |  61 ++++++
 .../jsonpatch/JsonPatchEndpointUriFactory.java     |  64 ++++++
 .../services/org/apache/camel/component.properties |   7 +
 .../services/org/apache/camel/component/json-patch |   2 +
 .../apache/camel/configurer/json-patch-component   |   2 +
 .../apache/camel/configurer/json-patch-endpoint    |   2 +
 .../apache/camel/urifactory/json-patch-endpoint    |   2 +
 .../camel/component/jsonpatch/json-patch.json      |  34 ++++
 .../src/main/docs/json-patch-component.adoc        | 127 ++++++++++++
 .../component/jsonpatch/JsonPatchComponent.java    |  32 +++
 .../component/jsonpatch/JsonPatchConstants.java    |  24 +++
 .../component/jsonpatch/JsonPatchEndpoint.java     |  57 ++++++
 .../component/jsonpatch/JsonPatchProducer.java     |  55 +++++
 .../services/org/apache/camel/component/json-patch |   1 +
 .../jsonpatch/JsonPatchComponentTest.java          |  59 ++++++
 .../src/test/resources/log4j2.properties           |   0
 .../apache/camel/component/jsonpatch/patch.json    |   1 +
 .../camel/component/jsonpatch/patch_error.json     |   1 +
 .../services/org/apache/camel/other.properties     |   7 +
 .../resources/salesforce-maven-plugin.json         |  14 ++
 components/pom.xml                                 |   1 +
 core/camel-allcomponents/pom.xml                   |   4 +
 .../component/ComponentsBuilderFactory.java        |  13 ++
 .../dsl/JsonPatchComponentBuilderFactory.java      | 121 +++++++++++
 .../src/generated/resources/metadata.json          |  22 ++
 .../builder/endpoint/EndpointBuilderFactory.java   |   1 +
 .../camel/builder/endpoint/EndpointBuilders.java   |   1 +
 .../builder/endpoint/StaticEndpointBuilders.java   |  51 +++++
 .../dsl/JsonPatchEndpointBuilderFactory.java       | 224 +++++++++++++++++++++
 .../org/apache/camel/main/components.properties    |   1 +
 docs/components/modules/ROOT/nav.adoc              |   1 +
 .../modules/ROOT/pages/json-patch-component.adoc   | 129 ++++++++++++
 .../EndpointProducerDeserializersResolver.java     |   1 +
 parent/pom.xml                                     |   5 +
 39 files changed, 1275 insertions(+)
 create mode 100644 catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/json-patch.json
 create mode 100644 components/camel-json-patch/pom.xml
 create mode 100644 components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchComponentConfigurer.java
 create mode 100644 components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointConfigurer.java
 create mode 100644 components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointUriFactory.java
 create mode 100644 components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component.properties
 create mode 100644 components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component/json-patch
 create mode 100644 components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-component
 create mode 100644 components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-endpoint
 create mode 100644 components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/urifactory/json-patch-endpoint
 create mode 100644 components/camel-json-patch/src/generated/resources/org/apache/camel/component/jsonpatch/json-patch.json
 create mode 100644 components/camel-json-patch/src/main/docs/json-patch-component.adoc
 create mode 100644 components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchComponent.java
 create mode 100644 components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchConstants.java
 create mode 100644 components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchEndpoint.java
 create mode 100644 components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchProducer.java
 create mode 100644 components/camel-json-patch/src/main/resources/META-INF/services/org/apache/camel/component/json-patch
 create mode 100644 components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java
 copy components/{camel-salesforce/camel-salesforce-maven-plugin => camel-json-patch}/src/test/resources/log4j2.properties (100%)
 create mode 100644 components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch.json
 create mode 100644 components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch_error.json
 create mode 100644 components/camel-salesforce/camel-salesforce-maven-plugin/src/generated/resources/META-INF/services/org/apache/camel/other.properties
 create mode 100644 components/camel-salesforce/camel-salesforce-maven-plugin/src/generated/resources/salesforce-maven-plugin.json
 create mode 100644 core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java
 create mode 100644 core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java
 create mode 100644 docs/components/modules/ROOT/pages/json-patch-component.adoc

[camel] 04/06: CAMEL-13590 First version json-patch component - Regen

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit a2a000c7e61e43eecd00f712c121a44c064397a5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Aug 24 17:56:49 2021 +0200

    CAMEL-13590 First version json-patch component - Regen
---
 .../org/apache/camel/catalog/components.properties |  1 +
 .../camel/catalog/components/json-patch.json       | 34 ++++++++++++++++++++++
 .../org/apache/camel/main/components.properties    |  1 +
 docs/components/modules/ROOT/nav.adoc              |  1 +
 4 files changed, 37 insertions(+)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
index 1604e0a..58646f4 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components.properties
@@ -182,6 +182,7 @@ jolt
 jooq
 jpa
 jslt
+json-patch
 json-validator
 jsonata
 jt400
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
new file mode 100644
index 0000000..6490454
--- /dev/null
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/components/json-patch.json
@@ -0,0 +1,34 @@
+{
+  "component": {
+    "kind": "component",
+    "name": "json-patch",
+    "title": "JsonPatch",
+    "description": "JsonPatch component which transform JSON using JSON patch (RFC 6902).",
+    "deprecated": false,
+    "firstVersion": "3.12.0-SNAPSHOT",
+    "label": "transformation",
+    "javaType": "org.apache.camel.component.jsonpatch.JsonPatchComponent",
+    "supportLevel": "Preview",
+    "groupId": "org.apache.camel",
+    "artifactId": "camel-json-patch",
+    "version": "3.12.0-SNAPSHOT",
+    "scheme": "json-patch",
+    "extendsScheme": "",
+    "syntax": "json-patch:resourceUri",
+    "async": false,
+    "api": false,
+    "consumerOnly": false,
+    "producerOnly": true,
+    "lenientProperties": false
+  },
+  "componentProperties": {
+    "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during star [...]
+    "autowiredEnabled": { "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which t [...]
+  },
+  "properties": {
+    "resourceUri": { "kind": "path", "displayName": "Resource Uri", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Path to the resource. You can prefix with: classpath, file, http, ref, or bean. classpath, file and http loads the resource using these protocols (classpath is default). ref will lookup the resource in the registry. bean will [...]
+    "allowContextMapAll": { "kind": "parameter", "displayName": "Allow Context Map All", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Sets whether the context map should allow access to all details. By default only the message body and headers can be accessed. This option can be enabled for full access to the current Exchange and CamelContext. [...]
+    "contentCache": { "kind": "parameter", "displayName": "Content Cache", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Sets whether to use resource content cache or not" },
+    "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during sta [...]
+  }
+}
diff --git a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
index 1604e0a..58646f4 100644
--- a/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
+++ b/core/camel-main/src/generated/resources/org/apache/camel/main/components.properties
@@ -182,6 +182,7 @@ jolt
 jooq
 jpa
 jslt
+json-patch
 json-validator
 jsonata
 jt400
diff --git a/docs/components/modules/ROOT/nav.adoc b/docs/components/modules/ROOT/nav.adoc
index 139ce7d..ecf4217 100644
--- a/docs/components/modules/ROOT/nav.adoc
+++ b/docs/components/modules/ROOT/nav.adoc
@@ -192,6 +192,7 @@
 ** xref:jslt-component.adoc[JSLT]
 ** xref:json-validator-component.adoc[JSON Schema Validator]
 ** xref:jsonata-component.adoc[JSONata]
+** xref:json-patch-component.adoc[JsonPatch]
 ** xref:jt400-component.adoc[JT400]
 ** xref:kafka-component.adoc[Kafka]
 ** xref:kamelet-component.adoc[Kamelet]

[camel] 02/06: CAMEL-13590 First version json-patch component - added docs

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 2bcf86d083efd3a257b6ee867d25d0f22d975641
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Aug 24 16:56:39 2021 +0200

    CAMEL-13590 First version json-patch component - added docs
---
 .../src/main/docs/json-patch-component.adoc        | 198 ++++++++++++++++++++
 .../modules/ROOT/pages/json-patch-component.adoc   | 200 +++++++++++++++++++++
 2 files changed, 398 insertions(+)

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
new file mode 100644
index 0000000..9727f55
--- /dev/null
+++ b/components/camel-json-patch/src/main/docs/json-patch-component.adoc
@@ -0,0 +1,198 @@
+[[json-patch-component]]
+= JsonPatch Component
+:docTitle: JsonPatch
+:artifactId: camel-json-patch
+:description: JsonPatch component which transform JSON using JSON patch (RFC 6902).
+:since: 3.12.0-SNAPSHOT
+:supportLevel: Preview
+:component-header: Only producer is supported
+include::{cq-version}@camel-quarkus:ROOT:partial$reference/components/json-patch.adoc[opts=optional]
+
+*Since Camel {since}*
+
+*{component-header}*
+
+The Jslt component allows you to process a JSON messages using an
+https://github.com/schibsted/jslt[JSLT] expression. This can be
+ideal when doing JSON to JSON transformation or querying data.
+
+Maven users will need to add the following dependency to
+their `pom.xml` for this component:
+
+[source,xml]
+------------------------------------------------------------
+<dependency>
+    <groupId>org.apache.camel</groupId>
+    <artifactId>camel-json-patch</artifactId>
+    <version>x.x.x</version>
+    <!-- use the same version as your Camel core version -->
+</dependency>
+------------------------------------------------------------
+
+
+== URI format
+
+-----------------------
+json-patch:resourceUri[?options]
+-----------------------
+
+Where *specName* is the classpath-local URI of the specification to
+invoke; or the complete URL of the remote specification
+(eg: \file://folder/myfile.vm).
+
+
+// component-configure options: START
+== Configuring Options
+
+Camel components are configured on two separate levels:
+
+- component level
+- endpoint level
+
+=== Configuring Component Options
+
+The component level is the highest level which holds general and common configurations that are inherited by the endpoints.
+For example a component may have security settings, credentials for authentication, urls for network connection and so forth.
+
+Some components only have a few options, and others may have many. Because components typically have pre configured defaults
+that are commonly used, then you may often only need to configure a few options on a component; or none at all.
+
+Configuring components can be done with the xref:latest@manual::component-dsl.adoc[Component DSL],
+in a configuration file (application.properties|yaml), or directly with Java code.
+
+=== Configuring Endpoint Options
+
+Where you find yourself configuring the most is on endpoints, as endpoints often have many options, which allows you to
+configure what you need the endpoint to do. The options are also categorized into whether the endpoint is used as consumer (from)
+or as a producer (to), or used for both.
+
+Configuring endpoints is most often done directly in the endpoint URI as path and query parameters. You can also use
+the xref:latest@manual::Endpoint-dsl.adoc[Endpoint DSL] as a _type safe_ way of configuring endpoints.
+
+A good practice when configuring options is to use xref:latest@manual::using-propertyplaceholder.adoc[Property Placeholders],
+which allows to not hardcode urls, port numbers, sensitive information, and other settings.
+In other words placeholders allows to externalize the configuration from your code, and gives more flexibility and reuse.
+
+The following two sections lists all the options, firstly for the component followed by the endpoint.
+// component-configure options: END
+
+// component options: START
+== Component Options
+
+
+The JsonPatch component supports 2 options, which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...]
+| *autowiredEnabled* (advanced) | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | boolean
+|===
+// component options: END
+
+// endpoint options: START
+== Endpoint Options
+
+The JsonPatch endpoint is configured using URI syntax:
+
+----
+json-patch:resourceUri
+----
+
+with the following path and query parameters:
+
+=== Path Parameters (1 parameters):
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *resourceUri* | *Required* Path to the resource. You can prefix with: classpath, file, http, ref, or bean. classpath, file and http loads the resource using these protocols (classpath is default). ref will lookup the resource in the registry. bean will call a method on a bean to be used as the resource. For bean you can specify the method name after dot, eg bean:myBean.myMethod. |  | String
+|===
+
+
+=== Query Parameters (3 parameters):
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *allowContextMapAll* (producer) | Sets whether the context map should allow access to all details. By default only the message body and headers can be accessed. This option can be enabled for full access to the current Exchange and CamelContext. Doing so impose a potential security risk as this opens access to the full power of CamelContext API. | false | boolean
+| *contentCache* (producer) | Sets whether to use resource content cache or not | false | boolean
+| *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...]
+|===
+// endpoint options: END
+
+
+== Passing values to JSLT
+
+Camel can supply exchange information as variables when applying a JSLT expression on the body. The available variables from the *Exchange* are:
+
+[width="100%",cols="2,5",options="header"]
+|===
+| name | value
+| headers | The headers of the In message as a json object
+| exchange.properties | The *Exchange* properties as a json object. _exchange_ is the name of the variable and _properties_ is the path to the exchange properties. Available if _allowContextMapAll_ option is true.
+|===
+
+All the values that cannot be converted to json with Jackson are denied and will not be available in the jslt expression.
+
+For example, the header named "type" and the exchange property "instance" can be accessed like
+
+[source,json]
+--------------------------------------
+{
+  "type": $headers.type,
+  "instance": $exchange.properties.instance
+}
+--------------------------------------
+
+== Samples
+
+For example you could use something like
+
+[source,java]
+--------------------------------------
+from("activemq:My.Queue").
+  to("jslt:com/acme/MyResponse.json");
+--------------------------------------
+
+And a file based resource:
+
+[source,java]
+---------------------------------------------------------------
+from("activemq:My.Queue").
+  to("jslt:file://myfolder/MyResponse.json?contentCache=true").
+  to("activemq:Another.Queue");
+---------------------------------------------------------------
+
+You can also specify which JSLT expression the component should use
+dynamically via a header, so for example:
+
+[source,java]
+---------------------------------------------------------------------
+from("direct:in").
+  setHeader("CamelJsltResourceUri").constant("path/to/my/spec.json").
+  to("jslt:dummy?allowTemplateFromHeader=true");
+---------------------------------------------------------------------
+
+Or send whole jslt expression via header: (suitable for querying)
+ 
+[source,java]
+---------------------------------------------------------------------
+from("direct:in").
+  setHeader("CamelJsltString").constant(".published").
+  to("jslt:dummy?allowTemplateFromHeader=true");
+---------------------------------------------------------------------
+
+Passing exchange properties to the jslt expression can be done like this
+
+[source,java]
+---------------------------------------------------------------------
+from("direct:in").
+  to("jslt:com/acme/MyResponse.json?allowContextMapAll=true");
+---------------------------------------------------------------------
+
+include::{page-component-version}@camel-spring-boot::page$jslt-starter.adoc[]
diff --git a/docs/components/modules/ROOT/pages/json-patch-component.adoc b/docs/components/modules/ROOT/pages/json-patch-component.adoc
new file mode 100644
index 0000000..ee6afa4
--- /dev/null
+++ b/docs/components/modules/ROOT/pages/json-patch-component.adoc
@@ -0,0 +1,200 @@
+[[json-patch-component]]
+= JsonPatch Component
+//THIS FILE IS COPIED: EDIT THE SOURCE FILE:
+:page-source: components/camel-json-patch/src/main/docs/json-patch-component.adoc
+:docTitle: JsonPatch
+:artifactId: camel-json-patch
+:description: JsonPatch component which transform JSON using JSON patch (RFC 6902).
+:since: 3.12.0-SNAPSHOT
+:supportLevel: Preview
+:component-header: Only producer is supported
+include::{cq-version}@camel-quarkus:ROOT:partial$reference/components/json-patch.adoc[opts=optional]
+
+*Since Camel {since}*
+
+*{component-header}*
+
+The Jslt component allows you to process a JSON messages using an
+https://github.com/schibsted/jslt[JSLT] expression. This can be
+ideal when doing JSON to JSON transformation or querying data.
+
+Maven users will need to add the following dependency to
+their `pom.xml` for this component:
+
+[source,xml]
+------------------------------------------------------------
+<dependency>
+    <groupId>org.apache.camel</groupId>
+    <artifactId>camel-json-patch</artifactId>
+    <version>x.x.x</version>
+    <!-- use the same version as your Camel core version -->
+</dependency>
+------------------------------------------------------------
+
+
+== URI format
+
+-----------------------
+json-patch:resourceUri[?options]
+-----------------------
+
+Where *specName* is the classpath-local URI of the specification to
+invoke; or the complete URL of the remote specification
+(eg: \file://folder/myfile.vm).
+
+
+// component-configure options: START
+== Configuring Options
+
+Camel components are configured on two separate levels:
+
+- component level
+- endpoint level
+
+=== Configuring Component Options
+
+The component level is the highest level which holds general and common configurations that are inherited by the endpoints.
+For example a component may have security settings, credentials for authentication, urls for network connection and so forth.
+
+Some components only have a few options, and others may have many. Because components typically have pre configured defaults
+that are commonly used, then you may often only need to configure a few options on a component; or none at all.
+
+Configuring components can be done with the xref:latest@manual::component-dsl.adoc[Component DSL],
+in a configuration file (application.properties|yaml), or directly with Java code.
+
+=== Configuring Endpoint Options
+
+Where you find yourself configuring the most is on endpoints, as endpoints often have many options, which allows you to
+configure what you need the endpoint to do. The options are also categorized into whether the endpoint is used as consumer (from)
+or as a producer (to), or used for both.
+
+Configuring endpoints is most often done directly in the endpoint URI as path and query parameters. You can also use
+the xref:latest@manual::Endpoint-dsl.adoc[Endpoint DSL] as a _type safe_ way of configuring endpoints.
+
+A good practice when configuring options is to use xref:latest@manual::using-propertyplaceholder.adoc[Property Placeholders],
+which allows to not hardcode urls, port numbers, sensitive information, and other settings.
+In other words placeholders allows to externalize the configuration from your code, and gives more flexibility and reuse.
+
+The following two sections lists all the options, firstly for the component followed by the endpoint.
+// component-configure options: END
+
+// component options: START
+== Component Options
+
+
+The JsonPatch component supports 2 options, which are listed below.
+
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...]
+| *autowiredEnabled* (advanced) | Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which then gets configured on the component. This can be used for automatic configuring JDBC data sources, JMS connection factories, AWS Clients, etc. | true | boolean
+|===
+// component options: END
+
+// endpoint options: START
+== Endpoint Options
+
+The JsonPatch endpoint is configured using URI syntax:
+
+----
+json-patch:resourceUri
+----
+
+with the following path and query parameters:
+
+=== Path Parameters (1 parameters):
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *resourceUri* | *Required* Path to the resource. You can prefix with: classpath, file, http, ref, or bean. classpath, file and http loads the resource using these protocols (classpath is default). ref will lookup the resource in the registry. bean will call a method on a bean to be used as the resource. For bean you can specify the method name after dot, eg bean:myBean.myMethod. |  | String
+|===
+
+
+=== Query Parameters (3 parameters):
+
+
+[width="100%",cols="2,5,^1,2",options="header"]
+|===
+| Name | Description | Default | Type
+| *allowContextMapAll* (producer) | Sets whether the context map should allow access to all details. By default only the message body and headers can be accessed. This option can be enabled for full access to the current Exchange and CamelContext. Doing so impose a potential security risk as this opens access to the full power of CamelContext API. | false | boolean
+| *contentCache* (producer) | Sets whether to use resource content cache or not | false | boolean
+| *lazyStartProducer* (producer) | Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during starting and cause the route to fail being started. By deferring this startup to be lazy then the startup failure can be handled during routing messages via Camel's routing error handlers. Beware that when the first message is processed then creating and [...]
+|===
+// endpoint options: END
+
+
+== Passing values to JSLT
+
+Camel can supply exchange information as variables when applying a JSLT expression on the body. The available variables from the *Exchange* are:
+
+[width="100%",cols="2,5",options="header"]
+|===
+| name | value
+| headers | The headers of the In message as a json object
+| exchange.properties | The *Exchange* properties as a json object. _exchange_ is the name of the variable and _properties_ is the path to the exchange properties. Available if _allowContextMapAll_ option is true.
+|===
+
+All the values that cannot be converted to json with Jackson are denied and will not be available in the jslt expression.
+
+For example, the header named "type" and the exchange property "instance" can be accessed like
+
+[source,json]
+--------------------------------------
+{
+  "type": $headers.type,
+  "instance": $exchange.properties.instance
+}
+--------------------------------------
+
+== Samples
+
+For example you could use something like
+
+[source,java]
+--------------------------------------
+from("activemq:My.Queue").
+  to("jslt:com/acme/MyResponse.json");
+--------------------------------------
+
+And a file based resource:
+
+[source,java]
+---------------------------------------------------------------
+from("activemq:My.Queue").
+  to("jslt:file://myfolder/MyResponse.json?contentCache=true").
+  to("activemq:Another.Queue");
+---------------------------------------------------------------
+
+You can also specify which JSLT expression the component should use
+dynamically via a header, so for example:
+
+[source,java]
+---------------------------------------------------------------------
+from("direct:in").
+  setHeader("CamelJsltResourceUri").constant("path/to/my/spec.json").
+  to("jslt:dummy?allowTemplateFromHeader=true");
+---------------------------------------------------------------------
+
+Or send whole jslt expression via header: (suitable for querying)
+ 
+[source,java]
+---------------------------------------------------------------------
+from("direct:in").
+  setHeader("CamelJsltString").constant(".published").
+  to("jslt:dummy?allowTemplateFromHeader=true");
+---------------------------------------------------------------------
+
+Passing exchange properties to the jslt expression can be done like this
+
+[source,java]
+---------------------------------------------------------------------
+from("direct:in").
+  to("jslt:com/acme/MyResponse.json?allowContextMapAll=true");
+---------------------------------------------------------------------
+
+include::{page-component-version}@camel-spring-boot::page$jslt-starter.adoc[]

[camel] 01/06: CAMEL-13590 First version json-patch component

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 501e7fb7190fe4d1167b23c72c3bfdc1a1e55a05
Author: g.dedlovskiy <g....@isimplelab.com>
AuthorDate: Fri Aug 20 21:31:12 2021 +0300

    CAMEL-13590 First version json-patch component
---
 bom/camel-bom/pom.xml                              |   5 +
 components/camel-json-patch/pom.xml                |  53 +++++
 .../jsonpatch/JsonPatchComponentConfigurer.java    |  55 +++++
 .../jsonpatch/JsonPatchEndpointConfigurer.java     |  61 ++++++
 .../jsonpatch/JsonPatchEndpointUriFactory.java     |  64 ++++++
 .../services/org/apache/camel/component.properties |   7 +
 .../services/org/apache/camel/component/json-patch |   2 +
 .../apache/camel/configurer/json-patch-component   |   2 +
 .../apache/camel/configurer/json-patch-endpoint    |   2 +
 .../apache/camel/urifactory/json-patch-endpoint    |   2 +
 .../camel/component/jsonpatch/json-patch.json      |  34 ++++
 .../component/jsonpatch/JsonPatchComponent.java    |  32 +++
 .../component/jsonpatch/JsonPatchConstants.java    |  24 +++
 .../component/jsonpatch/JsonPatchEndpoint.java     |  57 ++++++
 .../component/jsonpatch/JsonPatchProducer.java     |  55 +++++
 .../services/org/apache/camel/component/json-patch |   1 +
 .../jsonpatch/JsonPatchComponentTest.java          |  59 ++++++
 .../src/test/resources/log4j2.properties           |  23 +++
 .../apache/camel/component/jsonpatch/patch.json    |   1 +
 .../camel/component/jsonpatch/patch_error.json     |   1 +
 components/pom.xml                                 |   1 +
 core/camel-allcomponents/pom.xml                   |   4 +
 .../component/ComponentsBuilderFactory.java        |  13 ++
 .../dsl/JsonPatchComponentBuilderFactory.java      | 121 +++++++++++
 .../src/generated/resources/metadata.json          |  22 ++
 .../builder/endpoint/EndpointBuilderFactory.java   |   1 +
 .../camel/builder/endpoint/EndpointBuilders.java   |   1 +
 .../builder/endpoint/StaticEndpointBuilders.java   |  51 +++++
 .../dsl/JsonPatchEndpointBuilderFactory.java       | 224 +++++++++++++++++++++
 parent/pom.xml                                     |   5 +
 30 files changed, 983 insertions(+)

diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index 5c6b6ab..f549133 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -1204,6 +1204,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
+        <artifactId>camel-json-patch</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel</groupId>
         <artifactId>camel-jt400</artifactId>
         <version>${project.version}</version>
       </dependency>
diff --git a/components/camel-json-patch/pom.xml b/components/camel-json-patch/pom.xml
new file mode 100644
index 0000000..3810be1
--- /dev/null
+++ b/components/camel-json-patch/pom.xml
@@ -0,0 +1,53 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+
+    Licensed to the Apache Software Foundation (ASF) under one or more
+    contributor license agreements.  See the NOTICE file distributed with
+    this work for additional information regarding copyright ownership.
+    The ASF licenses this file to You under the Apache License, Version 2.0
+    (the "License"); you may not use this file except in compliance with
+    the License.  You may obtain a copy of the License at
+
+         http://www.apache.org/licenses/LICENSE-2.0
+
+    Unless required by applicable law or agreed to in writing, software
+    distributed under the License is distributed on an "AS IS" BASIS,
+    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+    See the License for the specific language governing permissions and
+    limitations under the License.
+
+-->
+<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+  <modelVersion>4.0.0</modelVersion>
+
+  <parent>
+    <groupId>org.apache.camel</groupId>
+    <artifactId>components</artifactId>
+    <version>3.12.0-SNAPSHOT</version>
+  </parent>
+
+  <artifactId>camel-json-patch</artifactId>
+  <packaging>jar</packaging>
+  <name>Camel :: JsonPatch</name>
+  <description>Camel JsonPatch Component</description>
+
+  <dependencies>
+    <dependency>
+      <groupId>com.github.java-json-tools</groupId>
+      <artifactId>json-patch</artifactId>
+      <version>1.13</version>
+    </dependency>
+
+    <dependency>
+      <groupId>org.apache.camel</groupId>
+      <artifactId>camel-support</artifactId>
+    </dependency>
+ 
+    <dependency>
+      <groupId>org.apache.camel</groupId>
+      <artifactId>camel-test</artifactId>
+      <scope>test</scope>
+    </dependency>
+  </dependencies>
+
+</project>
diff --git a/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchComponentConfigurer.java b/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchComponentConfigurer.java
new file mode 100644
index 0000000..2311fb9
--- /dev/null
+++ b/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchComponentConfigurer.java
@@ -0,0 +1,55 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.jsonpatch;
+
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.support.component.PropertyConfigurerSupport;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@SuppressWarnings("unchecked")
+public class JsonPatchComponentConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+
+    @Override
+    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+        JsonPatchComponent target = (JsonPatchComponent) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "autowiredenabled":
+        case "autowiredEnabled": target.setAutowiredEnabled(property(camelContext, boolean.class, value)); return true;
+        case "lazystartproducer":
+        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
+        default: return false;
+        }
+    }
+
+    @Override
+    public Class<?> getOptionType(String name, boolean ignoreCase) {
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "autowiredenabled":
+        case "autowiredEnabled": return boolean.class;
+        case "lazystartproducer":
+        case "lazyStartProducer": return boolean.class;
+        default: return null;
+        }
+    }
+
+    @Override
+    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+        JsonPatchComponent target = (JsonPatchComponent) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "autowiredenabled":
+        case "autowiredEnabled": return target.isAutowiredEnabled();
+        case "lazystartproducer":
+        case "lazyStartProducer": return target.isLazyStartProducer();
+        default: return null;
+        }
+    }
+}
+
diff --git a/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointConfigurer.java b/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointConfigurer.java
new file mode 100644
index 0000000..1586fba
--- /dev/null
+++ b/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointConfigurer.java
@@ -0,0 +1,61 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.jsonpatch;
+
+import java.util.Map;
+
+import org.apache.camel.CamelContext;
+import org.apache.camel.spi.ExtendedPropertyConfigurerGetter;
+import org.apache.camel.spi.PropertyConfigurerGetter;
+import org.apache.camel.spi.ConfigurerStrategy;
+import org.apache.camel.spi.GeneratedPropertyConfigurer;
+import org.apache.camel.util.CaseInsensitiveMap;
+import org.apache.camel.support.component.PropertyConfigurerSupport;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@SuppressWarnings("unchecked")
+public class JsonPatchEndpointConfigurer extends PropertyConfigurerSupport implements GeneratedPropertyConfigurer, PropertyConfigurerGetter {
+
+    @Override
+    public boolean configure(CamelContext camelContext, Object obj, String name, Object value, boolean ignoreCase) {
+        JsonPatchEndpoint target = (JsonPatchEndpoint) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "allowcontextmapall":
+        case "allowContextMapAll": target.setAllowContextMapAll(property(camelContext, boolean.class, value)); return true;
+        case "contentcache":
+        case "contentCache": target.setContentCache(property(camelContext, boolean.class, value)); return true;
+        case "lazystartproducer":
+        case "lazyStartProducer": target.setLazyStartProducer(property(camelContext, boolean.class, value)); return true;
+        default: return false;
+        }
+    }
+
+    @Override
+    public Class<?> getOptionType(String name, boolean ignoreCase) {
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "allowcontextmapall":
+        case "allowContextMapAll": return boolean.class;
+        case "contentcache":
+        case "contentCache": return boolean.class;
+        case "lazystartproducer":
+        case "lazyStartProducer": return boolean.class;
+        default: return null;
+        }
+    }
+
+    @Override
+    public Object getOptionValue(Object obj, String name, boolean ignoreCase) {
+        JsonPatchEndpoint target = (JsonPatchEndpoint) obj;
+        switch (ignoreCase ? name.toLowerCase() : name) {
+        case "allowcontextmapall":
+        case "allowContextMapAll": return target.isAllowContextMapAll();
+        case "contentcache":
+        case "contentCache": return target.isContentCache();
+        case "lazystartproducer":
+        case "lazyStartProducer": return target.isLazyStartProducer();
+        default: return null;
+        }
+    }
+}
+
diff --git a/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointUriFactory.java b/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointUriFactory.java
new file mode 100644
index 0000000..423e2fb
--- /dev/null
+++ b/components/camel-json-patch/src/generated/java/org/apache/camel/component/jsonpatch/JsonPatchEndpointUriFactory.java
@@ -0,0 +1,64 @@
+/* Generated by camel build tools - do NOT edit this file! */
+package org.apache.camel.component.jsonpatch;
+
+import java.net.URISyntaxException;
+import java.util.Collections;
+import java.util.HashMap;
+import java.util.HashSet;
+import java.util.Map;
+import java.util.Set;
+
+import org.apache.camel.spi.EndpointUriFactory;
+
+/**
+ * Generated by camel build tools - do NOT edit this file!
+ */
+public class JsonPatchEndpointUriFactory extends org.apache.camel.support.component.EndpointUriFactorySupport implements EndpointUriFactory {
+
+    private static final String BASE = ":resourceUri";
+
+    private static final Set<String> PROPERTY_NAMES;
+    private static final Set<String> SECRET_PROPERTY_NAMES;
+    static {
+        Set<String> props = new HashSet<>(4);
+        props.add("lazyStartProducer");
+        props.add("contentCache");
+        props.add("allowContextMapAll");
+        props.add("resourceUri");
+        PROPERTY_NAMES = Collections.unmodifiableSet(props);
+        SECRET_PROPERTY_NAMES = Collections.emptySet();
+    }
+
+    @Override
+    public boolean isEnabled(String scheme) {
+        return "json-patch".equals(scheme);
+    }
+
+    @Override
+    public String buildUri(String scheme, Map<String, Object> properties, boolean encode) throws URISyntaxException {
+        String syntax = scheme + BASE;
+        String uri = syntax;
+
+        Map<String, Object> copy = new HashMap<>(properties);
+
+        uri = buildPathParameter(syntax, uri, "resourceUri", null, true, copy);
+        uri = buildQueryParameters(uri, copy, encode);
+        return uri;
+    }
+
+    @Override
+    public Set<String> propertyNames() {
+        return PROPERTY_NAMES;
+    }
+
+    @Override
+    public Set<String> secretPropertyNames() {
+        return SECRET_PROPERTY_NAMES;
+    }
+
+    @Override
+    public boolean isLenientProperties() {
+        return false;
+    }
+}
+
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
new file mode 100644
index 0000000..9533cf2
--- /dev/null
+++ b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component.properties
@@ -0,0 +1,7 @@
+# Generated by camel build tools - do NOT edit this file!
+components=json-patch
+groupId=org.apache.camel
+artifactId=camel-json-patch
+version=3.12.0-SNAPSHOT
+projectName=Camel :: JsonPatch
+projectDescription=Camel JsonPatch Component
diff --git a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component/json-patch b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component/json-patch
new file mode 100644
index 0000000..0a83be5
--- /dev/null
+++ b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/component/json-patch
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.jsonpatch.JsonPatchComponent
diff --git a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-component b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-component
new file mode 100644
index 0000000..283807c
--- /dev/null
+++ b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-component
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.jsonpatch.JsonPatchComponentConfigurer
diff --git a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-endpoint b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-endpoint
new file mode 100644
index 0000000..45eb0a8
--- /dev/null
+++ b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/configurer/json-patch-endpoint
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.jsonpatch.JsonPatchEndpointConfigurer
diff --git a/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/urifactory/json-patch-endpoint b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/urifactory/json-patch-endpoint
new file mode 100644
index 0000000..5b80a5c
--- /dev/null
+++ b/components/camel-json-patch/src/generated/resources/META-INF/services/org/apache/camel/urifactory/json-patch-endpoint
@@ -0,0 +1,2 @@
+# Generated by camel build tools - do NOT edit this file!
+class=org.apache.camel.component.jsonpatch.JsonPatchEndpointUriFactory
diff --git a/components/camel-json-patch/src/generated/resources/org/apache/camel/component/jsonpatch/json-patch.json b/components/camel-json-patch/src/generated/resources/org/apache/camel/component/jsonpatch/json-patch.json
new file mode 100644
index 0000000..6490454
--- /dev/null
+++ b/components/camel-json-patch/src/generated/resources/org/apache/camel/component/jsonpatch/json-patch.json
@@ -0,0 +1,34 @@
+{
+  "component": {
+    "kind": "component",
+    "name": "json-patch",
+    "title": "JsonPatch",
+    "description": "JsonPatch component which transform JSON using JSON patch (RFC 6902).",
+    "deprecated": false,
+    "firstVersion": "3.12.0-SNAPSHOT",
+    "label": "transformation",
+    "javaType": "org.apache.camel.component.jsonpatch.JsonPatchComponent",
+    "supportLevel": "Preview",
+    "groupId": "org.apache.camel",
+    "artifactId": "camel-json-patch",
+    "version": "3.12.0-SNAPSHOT",
+    "scheme": "json-patch",
+    "extendsScheme": "",
+    "syntax": "json-patch:resourceUri",
+    "async": false,
+    "api": false,
+    "consumerOnly": false,
+    "producerOnly": true,
+    "lenientProperties": false
+  },
+  "componentProperties": {
+    "lazyStartProducer": { "kind": "property", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during star [...]
+    "autowiredEnabled": { "kind": "property", "displayName": "Autowired Enabled", "group": "advanced", "label": "advanced", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": true, "description": "Whether autowiring is enabled. This is used for automatic autowiring options (the option must be marked as autowired) by looking up in the registry to find if there is a single instance of matching type, which t [...]
+  },
+  "properties": {
+    "resourceUri": { "kind": "path", "displayName": "Resource Uri", "group": "producer", "label": "", "required": true, "type": "string", "javaType": "java.lang.String", "deprecated": false, "deprecationNote": "", "autowired": false, "secret": false, "description": "Path to the resource. You can prefix with: classpath, file, http, ref, or bean. classpath, file and http loads the resource using these protocols (classpath is default). ref will lookup the resource in the registry. bean will [...]
+    "allowContextMapAll": { "kind": "parameter", "displayName": "Allow Context Map All", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Sets whether the context map should allow access to all details. By default only the message body and headers can be accessed. This option can be enabled for full access to the current Exchange and CamelContext. [...]
+    "contentCache": { "kind": "parameter", "displayName": "Content Cache", "group": "producer", "label": "", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Sets whether to use resource content cache or not" },
+    "lazyStartProducer": { "kind": "parameter", "displayName": "Lazy Start Producer", "group": "producer", "label": "producer", "required": false, "type": "boolean", "javaType": "boolean", "deprecated": false, "autowired": false, "secret": false, "defaultValue": false, "description": "Whether the producer should be started lazy (on the first message). By starting lazy you can use this to allow CamelContext and routes to startup in situations where a producer may otherwise fail during sta [...]
+  }
+}
diff --git a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchComponent.java b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchComponent.java
new file mode 100644
index 0000000..851cef8
--- /dev/null
+++ b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchComponent.java
@@ -0,0 +1,32 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jsonpatch;
+
+import java.util.Map;
+
+import org.apache.camel.Endpoint;
+import org.apache.camel.support.DefaultComponent;
+
+@org.apache.camel.spi.annotations.Component("json-patch")
+public class JsonPatchComponent extends DefaultComponent {
+
+    protected Endpoint createEndpoint(String uri, String remaining, Map<String, Object> parameters) throws Exception {
+        Endpoint endpoint = new JsonPatchEndpoint(uri, this, remaining);
+        setProperties(endpoint, parameters);
+        return endpoint;
+    }
+}
diff --git a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchConstants.java b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchConstants.java
new file mode 100644
index 0000000..45d9689
--- /dev/null
+++ b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchConstants.java
@@ -0,0 +1,24 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jsonpatch;
+
+public final class JsonPatchConstants {
+    public static final String JSON_PATCH_RESOURCE_URI = "CamelJsonPatchResourceUri";
+
+    private JsonPatchConstants() {
+    }
+}
diff --git a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchEndpoint.java b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchEndpoint.java
new file mode 100644
index 0000000..d4f1bfe
--- /dev/null
+++ b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchEndpoint.java
@@ -0,0 +1,57 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jsonpatch;
+
+import org.apache.camel.Category;
+import org.apache.camel.Consumer;
+import org.apache.camel.ExchangePattern;
+import org.apache.camel.Processor;
+import org.apache.camel.Producer;
+import org.apache.camel.component.ResourceEndpoint;
+import org.apache.camel.spi.UriEndpoint;
+
+/**
+ * JsonPatch component which transform JSON using JSON patch (RFC 6902).
+ */
+@UriEndpoint(firstVersion = "3.12.0-SNAPSHOT", scheme = "json-patch", title = "JsonPatch", syntax = "json-patch:resourceUri",
+             producerOnly = true,
+             category = { Category.TRANSFORMATION })
+public class JsonPatchEndpoint extends ResourceEndpoint {
+
+    public JsonPatchEndpoint() {
+    }
+
+    public JsonPatchEndpoint(String uri, JsonPatchComponent component, String resourceUri) {
+        super(uri, component, resourceUri);
+    }
+
+    @Override
+    public ExchangePattern getExchangePattern() {
+        return ExchangePattern.InOut;
+    }
+
+    @Override
+    public Producer createProducer() {
+        return new JsonPatchProducer(this);
+    }
+
+    @Override
+    public Consumer createConsumer(Processor processor) throws UnsupportedOperationException {
+        throw new UnsupportedOperationException("You cannot consume from this endpoint");
+    }
+
+}
diff --git a/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchProducer.java b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchProducer.java
new file mode 100644
index 0000000..1e8cb2a
--- /dev/null
+++ b/components/camel-json-patch/src/main/java/org/apache/camel/component/jsonpatch/JsonPatchProducer.java
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jsonpatch;
+
+import com.fasterxml.jackson.databind.JsonNode;
+import com.fasterxml.jackson.databind.ObjectMapper;
+import com.github.fge.jsonpatch.JsonPatch;
+import org.apache.camel.Exchange;
+import org.apache.camel.support.DefaultProducer;
+import org.apache.camel.support.ResourceHelper;
+
+public class JsonPatchProducer extends DefaultProducer {
+    private final JsonPatchEndpoint endpoint;
+    private final ObjectMapper objectMapper;
+
+    public JsonPatchProducer(JsonPatchEndpoint endpoint) {
+        this(endpoint, new ObjectMapper());
+    }
+
+    public JsonPatchProducer(JsonPatchEndpoint endpoint, ObjectMapper objectMapper) {
+        super(endpoint);
+        this.endpoint = endpoint;
+        this.objectMapper = objectMapper;
+    }
+
+    public void process(Exchange exchange) throws Exception {
+        String resourceUri = exchange.getIn().getHeader(JsonPatchConstants.JSON_PATCH_RESOURCE_URI, String.class);
+        if (resourceUri == null || resourceUri.isEmpty()) {
+            resourceUri = endpoint.getResourceUri();
+        }
+
+        final JsonPatch patch = objectMapper.readValue(
+                ResourceHelper.resolveMandatoryResourceAsInputStream(exchange.getContext(), resourceUri),
+                JsonPatch.class);
+        JsonNode input = objectMapper.readTree(exchange.getIn().getBody(String.class));
+        JsonNode result = patch.apply(input);
+        exchange.getMessage().setBody(result.toString());
+
+    }
+
+}
diff --git a/components/camel-json-patch/src/main/resources/META-INF/services/org/apache/camel/component/json-patch b/components/camel-json-patch/src/main/resources/META-INF/services/org/apache/camel/component/json-patch
new file mode 100644
index 0000000..3b50325
--- /dev/null
+++ b/components/camel-json-patch/src/main/resources/META-INF/services/org/apache/camel/component/json-patch
@@ -0,0 +1 @@
+class=org.apache.camel.component.jsonpatch.JsonPatchComponent
diff --git a/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java b/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java
new file mode 100644
index 0000000..9ce3786
--- /dev/null
+++ b/components/camel-json-patch/src/test/java/org/apache/camel/component/jsonpatch/JsonPatchComponentTest.java
@@ -0,0 +1,59 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.component.jsonpatch;
+
+import org.apache.camel.builder.RouteBuilder;
+import org.apache.camel.component.mock.MockEndpoint;
+import org.apache.camel.test.junit4.CamelTestSupport;
+import org.junit.Test;
+
+public class JsonPatchComponentTest extends CamelTestSupport {
+
+    @Test
+    public void testCamelJsonPatch() throws Exception {
+        MockEndpoint mock = getMockEndpoint("mock:result");
+        sendBody("direct:foo", "{ \"a\": \"b\" }");
+        assertEquals(1, mock.getReceivedExchanges().size());
+        assertEquals("{\"c\":\"b\"}", mock.getReceivedExchanges().get(0).getIn().getBody(String.class));
+    }
+
+    @Test
+    public void testSendToDeadLetterChannelIfPatchError() throws Exception {
+        MockEndpoint mock = getMockEndpoint("mock:errors");
+        String source = "{ \"a\": \"b\" }";
+        sendBody("direct:patch_error", source);
+        assertEquals(1, mock.getReceivedExchanges().size());
+        assertEquals(source, mock.getReceivedExchanges().get(0).getIn().getBody(String.class));
+    }
+
+    @Override
+    protected RouteBuilder createRouteBuilder() {
+        return new RouteBuilder() {
+            public void configure() {
+                from("direct:foo")
+                        .to("json-patch:org/apache/camel/component/jsonpatch/patch.json")
+                        .to("mock:result");
+
+                from("direct:patch_error")
+                        .errorHandler(deadLetterChannel("mock:errors"))
+                        .to("json-patch:org/apache/camel/component/jsonpatch/patch_error.json");
+
+            }
+        };
+    }
+
+}
diff --git a/components/camel-json-patch/src/test/resources/log4j2.properties b/components/camel-json-patch/src/test/resources/log4j2.properties
new file mode 100644
index 0000000..d9f0508
--- /dev/null
+++ b/components/camel-json-patch/src/test/resources/log4j2.properties
@@ -0,0 +1,23 @@
+## ---------------------------------------------------------------------------
+## Licensed to the Apache Software Foundation (ASF) under one or more
+## contributor license agreements.  See the NOTICE file distributed with
+## this work for additional information regarding copyright ownership.
+## The ASF licenses this file to You under the Apache License, Version 2.0
+## (the "License"); you may not use this file except in compliance with
+## the License.  You may obtain a copy of the License at
+##
+##      http://www.apache.org/licenses/LICENSE-2.0
+##
+## Unless required by applicable law or agreed to in writing, software
+## distributed under the License is distributed on an "AS IS" BASIS,
+## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+## See the License for the specific language governing permissions and
+## limitations under the License.
+## ---------------------------------------------------------------------------
+
+appender.out.type = Console
+appender.out.name = out
+appender.out.layout.type = PatternLayout
+appender.out.layout.pattern = [%30.30t] %-30.30c{1} %-5p %m%n
+rootLogger.level = INFO
+rootLogger.appenderRef.out.ref = out
diff --git a/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch.json b/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch.json
new file mode 100644
index 0000000..1d8d7c2
--- /dev/null
+++ b/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch.json
@@ -0,0 +1 @@
+[ { "op": "move", "from": "/a", "path": "/c" } ]
\ No newline at end of file
diff --git a/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch_error.json b/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch_error.json
new file mode 100644
index 0000000..77773b0
--- /dev/null
+++ b/components/camel-json-patch/src/test/resources/org/apache/camel/component/jsonpatch/patch_error.json
@@ -0,0 +1 @@
+[ { "op": "123", "from": "/c", "path": "/a" } ]
\ No newline at end of file
diff --git a/components/pom.xml b/components/pom.xml
index bdb4463..4e44146 100644
--- a/components/pom.xml
+++ b/components/pom.xml
@@ -209,6 +209,7 @@
         <module>camel-jsonata</module>
         <module>camel-jsonb</module>
         <module>camel-jsonpath</module>
+        <module>camel-json-patch</module>
         <module>camel-jt400</module>
         <module>camel-jta</module>
         <module>camel-kafka</module>
diff --git a/core/camel-allcomponents/pom.xml b/core/camel-allcomponents/pom.xml
index ba1aebe..a96c95f 100644
--- a/core/camel-allcomponents/pom.xml
+++ b/core/camel-allcomponents/pom.xml
@@ -795,6 +795,10 @@
 		</dependency>
 		<dependency>
 			<groupId>org.apache.camel</groupId>
+			<artifactId>camel-json-patch</artifactId>
+		</dependency>
+		<dependency>
+			<groupId>org.apache.camel</groupId>
 			<artifactId>camel-json-validator</artifactId>
 		</dependency>
 		<dependency>
diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
index 97beb0b..59ffca1 100644
--- a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
+++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/ComponentsBuilderFactory.java
@@ -2530,6 +2530,19 @@ public interface ComponentsBuilderFactory {
         return org.apache.camel.builder.component.dsl.JsltComponentBuilderFactory.jslt();
     }
     /**
+     * JsonPatch (camel-json-patch)
+     * JsonPatch component which transform JSON using JSON patch (RFC 6902).
+     * 
+     * Category: transformation
+     * Since: 3.12.0-SNAPSHOT
+     * Maven coordinates: org.apache.camel:camel-json-patch
+     * 
+     * @return the dsl builder
+     */
+    static org.apache.camel.builder.component.dsl.JsonPatchComponentBuilderFactory.JsonPatchComponentBuilder jsonPatch() {
+        return org.apache.camel.builder.component.dsl.JsonPatchComponentBuilderFactory.jsonPatch();
+    }
+    /**
      * JSON Schema Validator (camel-json-validator)
      * Validate JSON payloads using NetworkNT JSON Schema.
      * 
diff --git a/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java
new file mode 100644
index 0000000..1c3fab2
--- /dev/null
+++ b/core/camel-componentdsl/src/generated/java/org/apache/camel/builder/component/dsl/JsonPatchComponentBuilderFactory.java
@@ -0,0 +1,121 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.builder.component.dsl;
+
+import javax.annotation.Generated;
+import org.apache.camel.Component;
+import org.apache.camel.builder.component.AbstractComponentBuilder;
+import org.apache.camel.builder.component.ComponentBuilder;
+import org.apache.camel.component.jsonpatch.JsonPatchComponent;
+
+/**
+ * JsonPatch component which transform JSON using JSON patch (RFC 6902).
+ * 
+ * Generated by camel-package-maven-plugin - do not edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.ComponentDslMojo")
+public interface JsonPatchComponentBuilderFactory {
+
+    /**
+     * JsonPatch (camel-json-patch)
+     * JsonPatch component which transform JSON using JSON patch (RFC 6902).
+     * 
+     * Category: transformation
+     * Since: 3.12.0-SNAPSHOT
+     * Maven coordinates: org.apache.camel:camel-json-patch
+     * 
+     * @return the dsl builder
+     */
+    static JsonPatchComponentBuilder jsonPatch() {
+        return new JsonPatchComponentBuilderImpl();
+    }
+
+    /**
+     * Builder for the JsonPatch component.
+     */
+    interface JsonPatchComponentBuilder
+            extends
+                ComponentBuilder<JsonPatchComponent> {
+        /**
+         * Whether the producer should be started lazy (on the first message).
+         * By starting lazy you can use this to allow CamelContext and routes to
+         * startup in situations where a producer may otherwise fail during
+         * starting and cause the route to fail being started. By deferring this
+         * startup to be lazy then the startup failure can be handled during
+         * routing messages via Camel's routing error handlers. Beware that when
+         * the first message is processed then creating and starting the
+         * producer may take a little time and prolong the total processing time
+         * of the processing.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param lazyStartProducer the value to set
+         * @return the dsl builder
+         */
+        default JsonPatchComponentBuilder lazyStartProducer(
+                boolean lazyStartProducer) {
+            doSetProperty("lazyStartProducer", lazyStartProducer);
+            return this;
+        }
+        /**
+         * Whether autowiring is enabled. This is used for automatic autowiring
+         * options (the option must be marked as autowired) by looking up in the
+         * registry to find if there is a single instance of matching type,
+         * which then gets configured on the component. This can be used for
+         * automatic configuring JDBC data sources, JMS connection factories,
+         * AWS Clients, etc.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: true
+         * Group: advanced
+         * 
+         * @param autowiredEnabled the value to set
+         * @return the dsl builder
+         */
+        default JsonPatchComponentBuilder autowiredEnabled(
+                boolean autowiredEnabled) {
+            doSetProperty("autowiredEnabled", autowiredEnabled);
+            return this;
+        }
+    }
+
+    class JsonPatchComponentBuilderImpl
+            extends
+                AbstractComponentBuilder<JsonPatchComponent>
+            implements
+                JsonPatchComponentBuilder {
+        @Override
+        protected JsonPatchComponent buildConcreteComponent() {
+            return new JsonPatchComponent();
+        }
+        @Override
+        protected boolean setPropertyOnComponent(
+                Component component,
+                String name,
+                Object value) {
+            switch (name) {
+            case "lazyStartProducer": ((JsonPatchComponent) component).setLazyStartProducer((boolean) value); return true;
+            case "autowiredEnabled": ((JsonPatchComponent) component).setAutowiredEnabled((boolean) value); return true;
+            default: return false;
+            }
+        }
+    }
+}
\ No newline at end of file
diff --git a/core/camel-componentdsl/src/generated/resources/metadata.json b/core/camel-componentdsl/src/generated/resources/metadata.json
index 58ba9aa..d8cd7e6 100644
--- a/core/camel-componentdsl/src/generated/resources/metadata.json
+++ b/core/camel-componentdsl/src/generated/resources/metadata.json
@@ -4148,6 +4148,28 @@
     "producerOnly": true,
     "lenientProperties": false
   },
+  "JsonPatchComponentBuilderFactory": {
+    "kind": "component",
+    "name": "json-patch",
+    "title": "JsonPatch",
+    "description": "JsonPatch component which transform JSON using JSON patch (RFC 6902).",
+    "deprecated": false,
+    "firstVersion": "3.12.0-SNAPSHOT",
+    "label": "transformation",
+    "javaType": "org.apache.camel.component.jsonpatch.JsonPatchComponent",
+    "supportLevel": "Preview",
+    "groupId": "org.apache.camel",
+    "artifactId": "camel-json-patch",
+    "version": "3.12.0-SNAPSHOT",
+    "scheme": "json-patch",
+    "extendsScheme": "",
+    "syntax": "json-patch:resourceUri",
+    "async": false,
+    "api": false,
+    "consumerOnly": false,
+    "producerOnly": true,
+    "lenientProperties": false
+  },
   "JsonValidatorComponentBuilderFactory": {
     "kind": "component",
     "name": "json-validator",
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
index 521b8f7..ec95bc4 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilderFactory.java
@@ -194,6 +194,7 @@ public interface EndpointBuilderFactory
             org.apache.camel.builder.endpoint.dsl.JooqEndpointBuilderFactory.JooqBuilders,
             org.apache.camel.builder.endpoint.dsl.JpaEndpointBuilderFactory.JpaBuilders,
             org.apache.camel.builder.endpoint.dsl.JsltEndpointBuilderFactory.JsltBuilders,
+            org.apache.camel.builder.endpoint.dsl.JsonPatchEndpointBuilderFactory.JsonPatchBuilders,
             org.apache.camel.builder.endpoint.dsl.JsonValidatorEndpointBuilderFactory.JsonValidatorBuilders,
             org.apache.camel.builder.endpoint.dsl.JsonataEndpointBuilderFactory.JsonataBuilders,
             org.apache.camel.builder.endpoint.dsl.Jt400EndpointBuilderFactory.Jt400Builders,
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
index 9ced0e8..a412685 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/EndpointBuilders.java
@@ -191,6 +191,7 @@ public interface EndpointBuilders
             org.apache.camel.builder.endpoint.dsl.JooqEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.JpaEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.JsltEndpointBuilderFactory,
+            org.apache.camel.builder.endpoint.dsl.JsonPatchEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.JsonValidatorEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.JsonataEndpointBuilderFactory,
             org.apache.camel.builder.endpoint.dsl.Jt400EndpointBuilderFactory,
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
index 5fc86bf..f761195 100644
--- a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/StaticEndpointBuilders.java
@@ -8611,6 +8611,57 @@ public class StaticEndpointBuilders {
         return org.apache.camel.builder.endpoint.dsl.JsonataEndpointBuilderFactory.endpointBuilder(componentName, path);
     }
     /**
+     * JsonPatch (camel-json-patch)
+     * JsonPatch component which transform JSON using JSON patch (RFC 6902).
+     * 
+     * Category: transformation
+     * Since: 3.12.0-SNAPSHOT
+     * Maven coordinates: org.apache.camel:camel-json-patch
+     * 
+     * Syntax: <code>json-patch:resourceUri</code>
+     * 
+     * Path parameter: resourceUri (required)
+     * Path to the resource. You can prefix with: classpath, file, http, ref, or
+     * bean. classpath, file and http loads the resource using these protocols
+     * (classpath is default). ref will lookup the resource in the registry.
+     * bean will call a method on a bean to be used as the resource. For bean
+     * you can specify the method name after dot, eg bean:myBean.myMethod.
+     * 
+     * @param path resourceUri
+     * @return the dsl builder
+     */
+    public static org.apache.camel.builder.endpoint.dsl.JsonPatchEndpointBuilderFactory.JsonPatchEndpointBuilder jsonPatch(
+            String path) {
+        return org.apache.camel.builder.endpoint.dsl.JsonPatchEndpointBuilderFactory.endpointBuilder("json-patch", path);
+    }
+    /**
+     * JsonPatch (camel-json-patch)
+     * JsonPatch component which transform JSON using JSON patch (RFC 6902).
+     * 
+     * Category: transformation
+     * Since: 3.12.0-SNAPSHOT
+     * Maven coordinates: org.apache.camel:camel-json-patch
+     * 
+     * Syntax: <code>json-patch:resourceUri</code>
+     * 
+     * Path parameter: resourceUri (required)
+     * Path to the resource. You can prefix with: classpath, file, http, ref, or
+     * bean. classpath, file and http loads the resource using these protocols
+     * (classpath is default). ref will lookup the resource in the registry.
+     * bean will call a method on a bean to be used as the resource. For bean
+     * you can specify the method name after dot, eg bean:myBean.myMethod.
+     * 
+     * @param componentName to use a custom component name for the endpoint
+     * instead of the default name
+     * @param path resourceUri
+     * @return the dsl builder
+     */
+    public static org.apache.camel.builder.endpoint.dsl.JsonPatchEndpointBuilderFactory.JsonPatchEndpointBuilder jsonPatch(
+            String componentName,
+            String path) {
+        return org.apache.camel.builder.endpoint.dsl.JsonPatchEndpointBuilderFactory.endpointBuilder(componentName, path);
+    }
+    /**
      * JSON Schema Validator (camel-json-validator)
      * Validate JSON payloads using NetworkNT JSON Schema.
      * 
diff --git a/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java
new file mode 100644
index 0000000..ffdd0af
--- /dev/null
+++ b/core/camel-endpointdsl/src/generated/java/org/apache/camel/builder/endpoint/dsl/JsonPatchEndpointBuilderFactory.java
@@ -0,0 +1,224 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package org.apache.camel.builder.endpoint.dsl;
+
+import javax.annotation.Generated;
+import org.apache.camel.builder.EndpointConsumerBuilder;
+import org.apache.camel.builder.EndpointProducerBuilder;
+import org.apache.camel.builder.endpoint.AbstractEndpointBuilder;
+
+/**
+ * JsonPatch component which transform JSON using JSON patch (RFC 6902).
+ * 
+ * Generated by camel build tools - do NOT edit this file!
+ */
+@Generated("org.apache.camel.maven.packaging.EndpointDslMojo")
+public interface JsonPatchEndpointBuilderFactory {
+
+
+    /**
+     * Builder for endpoint for the JsonPatch component.
+     */
+    public interface JsonPatchEndpointBuilder extends EndpointProducerBuilder {
+        /**
+         * Sets whether the context map should allow access to all details. By
+         * default only the message body and headers can be accessed. This
+         * option can be enabled for full access to the current Exchange and
+         * CamelContext. Doing so impose a potential security risk as this opens
+         * access to the full power of CamelContext API.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param allowContextMapAll the value to set
+         * @return the dsl builder
+         */
+        default JsonPatchEndpointBuilder allowContextMapAll(
+                boolean allowContextMapAll) {
+            doSetProperty("allowContextMapAll", allowContextMapAll);
+            return this;
+        }
+        /**
+         * Sets whether the context map should allow access to all details. By
+         * default only the message body and headers can be accessed. This
+         * option can be enabled for full access to the current Exchange and
+         * CamelContext. Doing so impose a potential security risk as this opens
+         * access to the full power of CamelContext API.
+         * 
+         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
+         * type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param allowContextMapAll the value to set
+         * @return the dsl builder
+         */
+        default JsonPatchEndpointBuilder allowContextMapAll(
+                String allowContextMapAll) {
+            doSetProperty("allowContextMapAll", allowContextMapAll);
+            return this;
+        }
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default JsonPatchEndpointBuilder contentCache(boolean contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+        /**
+         * Sets whether to use resource content cache or not.
+         * 
+         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
+         * type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param contentCache the value to set
+         * @return the dsl builder
+         */
+        default JsonPatchEndpointBuilder contentCache(String contentCache) {
+            doSetProperty("contentCache", contentCache);
+            return this;
+        }
+        /**
+         * Whether the producer should be started lazy (on the first message).
+         * By starting lazy you can use this to allow CamelContext and routes to
+         * startup in situations where a producer may otherwise fail during
+         * starting and cause the route to fail being started. By deferring this
+         * startup to be lazy then the startup failure can be handled during
+         * routing messages via Camel's routing error handlers. Beware that when
+         * the first message is processed then creating and starting the
+         * producer may take a little time and prolong the total processing time
+         * of the processing.
+         * 
+         * The option is a: &lt;code&gt;boolean&lt;/code&gt; type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param lazyStartProducer the value to set
+         * @return the dsl builder
+         */
+        default JsonPatchEndpointBuilder lazyStartProducer(
+                boolean lazyStartProducer) {
+            doSetProperty("lazyStartProducer", lazyStartProducer);
+            return this;
+        }
+        /**
+         * Whether the producer should be started lazy (on the first message).
+         * By starting lazy you can use this to allow CamelContext and routes to
+         * startup in situations where a producer may otherwise fail during
+         * starting and cause the route to fail being started. By deferring this
+         * startup to be lazy then the startup failure can be handled during
+         * routing messages via Camel's routing error handlers. Beware that when
+         * the first message is processed then creating and starting the
+         * producer may take a little time and prolong the total processing time
+         * of the processing.
+         * 
+         * The option will be converted to a &lt;code&gt;boolean&lt;/code&gt;
+         * type.
+         * 
+         * Default: false
+         * Group: producer
+         * 
+         * @param lazyStartProducer the value to set
+         * @return the dsl builder
+         */
+        default JsonPatchEndpointBuilder lazyStartProducer(
+                String lazyStartProducer) {
+            doSetProperty("lazyStartProducer", lazyStartProducer);
+            return this;
+        }
+    }
+
+    public interface JsonPatchBuilders {
+        /**
+         * JsonPatch (camel-json-patch)
+         * JsonPatch component which transform JSON using JSON patch (RFC 6902).
+         * 
+         * Category: transformation
+         * Since: 3.12.0-SNAPSHOT
+         * Maven coordinates: org.apache.camel:camel-json-patch
+         * 
+         * Syntax: <code>json-patch:resourceUri</code>
+         * 
+         * Path parameter: resourceUri (required)
+         * Path to the resource. You can prefix with: classpath, file, http,
+         * ref, or bean. classpath, file and http loads the resource using these
+         * protocols (classpath is default). ref will lookup the resource in the
+         * registry. bean will call a method on a bean to be used as the
+         * resource. For bean you can specify the method name after dot, eg
+         * bean:myBean.myMethod.
+         * 
+         * @param path resourceUri
+         * @return the dsl builder
+         */
+        default JsonPatchEndpointBuilder jsonPatch(String path) {
+            return JsonPatchEndpointBuilderFactory.endpointBuilder("json-patch", path);
+        }
+        /**
+         * JsonPatch (camel-json-patch)
+         * JsonPatch component which transform JSON using JSON patch (RFC 6902).
+         * 
+         * Category: transformation
+         * Since: 3.12.0-SNAPSHOT
+         * Maven coordinates: org.apache.camel:camel-json-patch
+         * 
+         * Syntax: <code>json-patch:resourceUri</code>
+         * 
+         * Path parameter: resourceUri (required)
+         * Path to the resource. You can prefix with: classpath, file, http,
+         * ref, or bean. classpath, file and http loads the resource using these
+         * protocols (classpath is default). ref will lookup the resource in the
+         * registry. bean will call a method on a bean to be used as the
+         * resource. For bean you can specify the method name after dot, eg
+         * bean:myBean.myMethod.
+         * 
+         * @param componentName to use a custom component name for the endpoint
+         * instead of the default name
+         * @param path resourceUri
+         * @return the dsl builder
+         */
+        default JsonPatchEndpointBuilder jsonPatch(
+                String componentName,
+                String path) {
+            return JsonPatchEndpointBuilderFactory.endpointBuilder(componentName, path);
+        }
+    }
+    static JsonPatchEndpointBuilder endpointBuilder(
+            String componentName,
+            String path) {
+        class JsonPatchEndpointBuilderImpl extends AbstractEndpointBuilder implements JsonPatchEndpointBuilder {
+            public JsonPatchEndpointBuilderImpl(String path) {
+                super(componentName, path);
+            }
+        }
+        return new JsonPatchEndpointBuilderImpl(path);
+    }
+}
\ No newline at end of file
diff --git a/parent/pom.xml b/parent/pom.xml
index 0ccaa79..efd6af7 100644
--- a/parent/pom.xml
+++ b/parent/pom.xml
@@ -1781,6 +1781,11 @@
 			</dependency>
 			<dependency>
 				<groupId>org.apache.camel</groupId>
+				<artifactId>camel-json-patch</artifactId>
+				<version>${project.version}</version>
+			</dependency>
+			<dependency>
+				<groupId>org.apache.camel</groupId>
 				<artifactId>camel-json-validator</artifactId>
 				<version>${project.version}</version>
 			</dependency>

[camel] 03/06: CAMEL-13590 First version json-patch component - Fixed BOM

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit 6a67be47e78c4d753d93d851146339b71d98e376
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Aug 24 16:59:57 2021 +0200

    CAMEL-13590 First version json-patch component - Fixed BOM
---
 bom/camel-bom/pom.xml | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/bom/camel-bom/pom.xml b/bom/camel-bom/pom.xml
index f549133..bc8804b 100644
--- a/bom/camel-bom/pom.xml
+++ b/bom/camel-bom/pom.xml
@@ -1179,6 +1179,11 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
+        <artifactId>camel-json-patch</artifactId>
+        <version>${project.version}</version>
+      </dependency>
+      <dependency>
+        <groupId>org.apache.camel</groupId>
         <artifactId>camel-json-validator</artifactId>
         <version>${project.version}</version>
       </dependency>
@@ -1204,11 +1209,6 @@
       </dependency>
       <dependency>
         <groupId>org.apache.camel</groupId>
-        <artifactId>camel-json-patch</artifactId>
-        <version>${project.version}</version>
-      </dependency>
-      <dependency>
-        <groupId>org.apache.camel</groupId>
         <artifactId>camel-jt400</artifactId>
         <version>${project.version}</version>
       </dependency>

[camel] 05/06: CAMEL-13590 First version json-patch component - Regen

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d5a706998227c6faca27226dbf8940712695d900
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Aug 24 17:57:53 2021 +0200

    CAMEL-13590 First version json-patch component - Regen
---
 .../src/main/docs/json-patch-component.adoc        | 71 ----------------------
 1 file changed, 71 deletions(-)

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 9727f55..f466f3f 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
@@ -125,74 +125,3 @@ with the following path and query parameters:
 |===
 // endpoint options: END
 
-
-== Passing values to JSLT
-
-Camel can supply exchange information as variables when applying a JSLT expression on the body. The available variables from the *Exchange* are:
-
-[width="100%",cols="2,5",options="header"]
-|===
-| name | value
-| headers | The headers of the In message as a json object
-| exchange.properties | The *Exchange* properties as a json object. _exchange_ is the name of the variable and _properties_ is the path to the exchange properties. Available if _allowContextMapAll_ option is true.
-|===
-
-All the values that cannot be converted to json with Jackson are denied and will not be available in the jslt expression.
-
-For example, the header named "type" and the exchange property "instance" can be accessed like
-
-[source,json]
---------------------------------------
-{
-  "type": $headers.type,
-  "instance": $exchange.properties.instance
-}
---------------------------------------
-
-== Samples
-
-For example you could use something like
-
-[source,java]
---------------------------------------
-from("activemq:My.Queue").
-  to("jslt:com/acme/MyResponse.json");
---------------------------------------
-
-And a file based resource:
-
-[source,java]
----------------------------------------------------------------
-from("activemq:My.Queue").
-  to("jslt:file://myfolder/MyResponse.json?contentCache=true").
-  to("activemq:Another.Queue");
----------------------------------------------------------------
-
-You can also specify which JSLT expression the component should use
-dynamically via a header, so for example:
-
-[source,java]
----------------------------------------------------------------------
-from("direct:in").
-  setHeader("CamelJsltResourceUri").constant("path/to/my/spec.json").
-  to("jslt:dummy?allowTemplateFromHeader=true");
----------------------------------------------------------------------
-
-Or send whole jslt expression via header: (suitable for querying)
- 
-[source,java]
----------------------------------------------------------------------
-from("direct:in").
-  setHeader("CamelJsltString").constant(".published").
-  to("jslt:dummy?allowTemplateFromHeader=true");
----------------------------------------------------------------------
-
-Passing exchange properties to the jslt expression can be done like this
-
-[source,java]
----------------------------------------------------------------------
-from("direct:in").
-  to("jslt:com/acme/MyResponse.json?allowContextMapAll=true");
----------------------------------------------------------------------
-
-include::{page-component-version}@camel-spring-boot::page$jslt-starter.adoc[]

[camel] 06/06: Regen

Posted by ac...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

acosentino pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git

commit d459ab0c953cb1797ba05b0b46afe1d6d92d69f5
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Tue Aug 24 18:21:23 2021 +0200

    Regen
---
 .../services/org/apache/camel/other.properties     |  7 +++
 .../resources/salesforce-maven-plugin.json         | 14 +++++
 .../modules/ROOT/pages/json-patch-component.adoc   | 71 ----------------------
 .../EndpointProducerDeserializersResolver.java     |  1 +
 4 files changed, 22 insertions(+), 71 deletions(-)

diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/generated/resources/META-INF/services/org/apache/camel/other.properties b/components/camel-salesforce/camel-salesforce-maven-plugin/src/generated/resources/META-INF/services/org/apache/camel/other.properties
new file mode 100644
index 0000000..806d140
--- /dev/null
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/generated/resources/META-INF/services/org/apache/camel/other.properties
@@ -0,0 +1,7 @@
+# Generated by camel build tools - do NOT edit this file!
+name=salesforce-maven-plugin
+groupId=org.apache.camel.maven
+artifactId=camel-salesforce-maven-plugin
+version=3.12.0-SNAPSHOT
+projectName=Camel :: Salesforce :: Maven plugin
+projectDescription=Camel Salesforce Maven plugin
diff --git a/components/camel-salesforce/camel-salesforce-maven-plugin/src/generated/resources/salesforce-maven-plugin.json b/components/camel-salesforce/camel-salesforce-maven-plugin/src/generated/resources/salesforce-maven-plugin.json
new file mode 100644
index 0000000..c2656e3
--- /dev/null
+++ b/components/camel-salesforce/camel-salesforce-maven-plugin/src/generated/resources/salesforce-maven-plugin.json
@@ -0,0 +1,14 @@
+{
+  "other": {
+    "kind": "other",
+    "name": "salesforce-maven-plugin",
+    "title": "Salesforce Maven Plugin",
+    "description": "Camel Salesforce Maven plugin",
+    "deprecated": false,
+    "firstVersion": "2.12.0",
+    "supportLevel": "Stable",
+    "groupId": "org.apache.camel.maven",
+    "artifactId": "camel-salesforce-maven-plugin",
+    "version": "3.12.0-SNAPSHOT"
+  }
+}
diff --git a/docs/components/modules/ROOT/pages/json-patch-component.adoc b/docs/components/modules/ROOT/pages/json-patch-component.adoc
index ee6afa4..32daf85 100644
--- a/docs/components/modules/ROOT/pages/json-patch-component.adoc
+++ b/docs/components/modules/ROOT/pages/json-patch-component.adoc
@@ -127,74 +127,3 @@ with the following path and query parameters:
 |===
 // endpoint options: END
 
-
-== Passing values to JSLT
-
-Camel can supply exchange information as variables when applying a JSLT expression on the body. The available variables from the *Exchange* are:
-
-[width="100%",cols="2,5",options="header"]
-|===
-| name | value
-| headers | The headers of the In message as a json object
-| exchange.properties | The *Exchange* properties as a json object. _exchange_ is the name of the variable and _properties_ is the path to the exchange properties. Available if _allowContextMapAll_ option is true.
-|===
-
-All the values that cannot be converted to json with Jackson are denied and will not be available in the jslt expression.
-
-For example, the header named "type" and the exchange property "instance" can be accessed like
-
-[source,json]
---------------------------------------
-{
-  "type": $headers.type,
-  "instance": $exchange.properties.instance
-}
---------------------------------------
-
-== Samples
-
-For example you could use something like
-
-[source,java]
---------------------------------------
-from("activemq:My.Queue").
-  to("jslt:com/acme/MyResponse.json");
---------------------------------------
-
-And a file based resource:
-
-[source,java]
----------------------------------------------------------------
-from("activemq:My.Queue").
-  to("jslt:file://myfolder/MyResponse.json?contentCache=true").
-  to("activemq:Another.Queue");
----------------------------------------------------------------
-
-You can also specify which JSLT expression the component should use
-dynamically via a header, so for example:
-
-[source,java]
----------------------------------------------------------------------
-from("direct:in").
-  setHeader("CamelJsltResourceUri").constant("path/to/my/spec.json").
-  to("jslt:dummy?allowTemplateFromHeader=true");
----------------------------------------------------------------------
-
-Or send whole jslt expression via header: (suitable for querying)
- 
-[source,java]
----------------------------------------------------------------------
-from("direct:in").
-  setHeader("CamelJsltString").constant(".published").
-  to("jslt:dummy?allowTemplateFromHeader=true");
----------------------------------------------------------------------
-
-Passing exchange properties to the jslt expression can be done like this
-
-[source,java]
----------------------------------------------------------------------
-from("direct:in").
-  to("jslt:com/acme/MyResponse.json?allowContextMapAll=true");
----------------------------------------------------------------------
-
-include::{page-component-version}@camel-spring-boot::page$jslt-starter.adoc[]
diff --git a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/EndpointProducerDeserializersResolver.java b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/EndpointProducerDeserializersResolver.java
index dd1e053..d17733f 100644
--- a/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/EndpointProducerDeserializersResolver.java
+++ b/dsl/camel-yaml-dsl/camel-yaml-dsl-deserializers/src/generated/java/org/apache/camel/dsl/yaml/deserializers/EndpointProducerDeserializersResolver.java
@@ -183,6 +183,7 @@ public final class EndpointProducerDeserializersResolver implements YamlDeserial
             case "jooq":
             case "jpa":
             case "jslt":
+            case "json-patch":
             case "json-validator":
             case "jsonata":
             case "jt400":