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/07/26 11:57:04 UTC

[camel-kamelets] branch json-validator created (now 3200e23)

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

acosentino pushed a change to branch json-validator
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git.


      at 3200e23  Add a Json Schema Validator Kamelet Action

This branch includes the following new commits:

     new d985375  Add a Json Schema Validator Kamelet Action
     new f3ec3d1  Add a Json Schema Validator Kamelet Action
     new e13ab6b  Add a Json Schema Validator Kamelet Action
     new 40d7a3d  Add a Json Schema Validator Kamelet Action
     new 8f47ef4  Add a Json Schema Validator Kamelet Action
     new 4a4a8a7  Add a Json Schema Validator Kamelet Action
     new dcb7dd9  Add a Json Schema Validator Kamelet Action
     new ab613f4  Add a Json Schema Validator Kamelet Action
     new 3200e23  Add a Json Schema Validator Kamelet Action

The 9 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.


[camel-kamelets] 02/09: Add a Json Schema Validator Kamelet Action

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

acosentino pushed a commit to branch json-validator
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit f3ec3d194934291b5f1a1b06981fddb13873cc6b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 26 13:52:29 2021 +0200

    Add a Json Schema Validator Kamelet Action
---
 .../json-schema-validator-action.kamelet.yaml      | 38 ++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml
new file mode 100644
index 0000000..76987e8
--- /dev/null
+++ b/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml
@@ -0,0 +1,38 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: json-schema-validators-action
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Actions"
+  labels:
+    camel.apache.org/kamelet.type: "action"
+spec:
+  definition:
+    title: "Json Schema Validator Action"
+    description: |-
+      Apply a Json Schema Template to validate the payload against.
+
+      The template property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
+    required:
+      - template
+    type: object
+    properties:
+      template:
+        title: Template
+        description: The inline template
+        type: binary
+  dependencies:
+  - "camel:json-validator"
+  - "camel:kamelet"
+  flow:
+    from:
+      uri: "kamelet:source"
+      steps:
+      - to:
+          uri: "json-validator:"
+          parameters:
+            resourceUri: "base64:{{template}}"

[camel-kamelets] 03/09: Add a Json Schema Validator Kamelet Action

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

acosentino pushed a commit to branch json-validator
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit e13ab6b9980e000094f729b792c12aed7415846f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 26 13:52:51 2021 +0200

    Add a Json Schema Validator Kamelet Action
---
 docs/modules/ROOT/nav.adoc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 336f0be..5b397ea 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -69,6 +69,7 @@
 * xref:ROOT:jms-apache-artemis-sink.adoc[image:kamelets/jms-apache-artemis-sink.svg[] JMS - Apache Artemis Kamelet Sink]
 * xref:ROOT:jms-apache-artemis-source.adoc[image:kamelets/jms-apache-artemis-source.svg[] JMS - Apache Artemis Kamelet Source]
 * xref:ROOT:json-deserialize-action.adoc[image:kamelets/json-deserialize-action.svg[] Json Deserialize Action]
+* xref:ROOT:json-schema-validators-action.adoc[image:kamelets/json-schema-validators-action.svg[] Json Schema Validator Action]
 * xref:ROOT:json-serialize-action.adoc[image:kamelets/json-serialize-action.svg[] Json Serialize Action]
 * xref:ROOT:jsonata-action.adoc[image:kamelets/jsonata-action.svg[] Jsonata Action]
 * xref:ROOT:kafka-manual-commit-action.adoc[image:kamelets/kafka-manual-commit-action.svg[] Kafka Manual Commit Action]

[camel-kamelets] 05/09: Add a Json Schema Validator Kamelet Action

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

acosentino pushed a commit to branch json-validator
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 8f47ef46c5813878826cf161b688e9670f1c3247
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 26 13:53:48 2021 +0200

    Add a Json Schema Validator Kamelet Action
---
 json-schema-validator-action.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/json-schema-validator-action.kamelet.yaml b/json-schema-validator-action.kamelet.yaml
index 76987e8..e240308 100644
--- a/json-schema-validator-action.kamelet.yaml
+++ b/json-schema-validator-action.kamelet.yaml
@@ -1,7 +1,7 @@
 apiVersion: camel.apache.org/v1alpha1
 kind: Kamelet
 metadata:
-  name: json-schema-validators-action
+  name: json-schema-validator-action
   annotations:
     camel.apache.org/kamelet.support.level: "Preview"
     camel.apache.org/catalog.version: "main-SNAPSHOT"

[camel-kamelets] 08/09: Add a Json Schema Validator Kamelet Action

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

acosentino pushed a commit to branch json-validator
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit ab613f492267191143e22cc9b56af2715d36ded6
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 26 13:54:54 2021 +0200

    Add a Json Schema Validator Kamelet Action
---
 .../kamelets/json-schema-validator-action.svg      |  59 +++++++++
 .../ROOT/pages/json-schema-validator-action.adoc   | 140 +++++++++++++++++++++
 2 files changed, 199 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/json-schema-validator-action.svg b/docs/modules/ROOT/assets/images/kamelets/json-schema-validator-action.svg
new file mode 100644
index 0000000..fa06352
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/json-schema-validator-action.svg
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   viewBox="0 -256 1792 1792"
+   id="svg3025"
+   version="1.1"
+   inkscape:version="0.48.3.1 r9886"
+   width="100%"
+   height="100%"
+   sodipodi:docname="cog_font_awesome.svg">
+  <metadata
+     id="metadata3035">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs3033" />
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="640"
+     inkscape:window-height="480"
+     id="namedview3031"
+     showgrid="false"
+     inkscape:zoom="0.13169643"
+     inkscape:cx="896"
+     inkscape:cy="896"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="0"
+     inkscape:current-layer="svg3025" />
+  <g
+     transform="matrix(1,0,0,-1,121.49153,1285.4237)"
+     id="g3027">
+    <path
+       d="m 1024,640 q 0,106 -75,181 -75,75 -181,75 -106,0 -181,-75 -75,-75 -75,-181 0,-106 75,-181 75,-75 181,-75 106,0 181,75 75,75 75,181 z m 512,109 V 527 q 0,-12 -8,-23 -8,-11 -20,-13 l -185,-28 q -19,-54 -39,-91 35,-50 107,-138 10,-12 10,-25 0,-13 -9,-23 -27,-37 -99,-108 -72,-71 -94,-71 -12,0 -26,9 l -138,108 q -44,-23 -91,-38 -16,-136 -29,-186 -7,-28 -36,-28 H 657 q -14,0 -24.5,8.5 Q 622,-111 621,-98 L 593,86 q -49,16 -90,37 L 362,16 Q 352,7 337,7 323,7 312,18 186,132 147,186 q -7 [...]
+       id="path3029"
+       inkscape:connector-curvature="0"
+       style="fill:currentColor" />
+  </g>
+</svg>
diff --git a/docs/modules/ROOT/pages/json-schema-validator-action.adoc b/docs/modules/ROOT/pages/json-schema-validator-action.adoc
new file mode 100644
index 0000000..d51b445
--- /dev/null
+++ b/docs/modules/ROOT/pages/json-schema-validator-action.adoc
@@ -0,0 +1,140 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/json-schema-validator-action.svg[] Json Schema Validator Action
+
+*Provided by: "Apache Software Foundation"*
+
+*Support Level for this Kamelet is: "Preview"*
+
+Apply a Json Schema Template to validate the payload against.
+
+The template property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `json-schema-validator-action` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *template {empty}* *| Template| The inline template| binary| | 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `json-schema-validator-action` can be used in various contexts.
+
+=== Knative Action
+
+The `json-schema-validator-action` Kamelet can be used as intermediate step in a Knative binding.
+
+.json-schema-validator-action-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: json-schema-validator-action-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: timer-source
+    properties:
+      message: "Hello"
+  steps:
+  - ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: json-schema-validator-action
+    properties:
+      template: "The Template"
+  sink:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `json-schema-validator-action-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the action using the following command:
+
+[source,shell]
+----
+kubectl apply -f json-schema-validator-action-binding.yaml
+----
+
+==== *Binding to Knative using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the `kamel bind` command:
+
+[source,shell]
+----
+kamel bind timer-source?message=Hello --step json-schema-validator-action -p "step-0.template=The Template" channel/mychannel
+----
+
+This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
+
+=== Kafka Action
+
+The `json-schema-validator-action` Kamelet can be used as intermediate step in a Kafka binding.
+
+.json-schema-validator-action-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: json-schema-validator-action-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: timer-source
+    properties:
+      message: "Hello"
+  steps:
+  - ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: json-schema-validator-action
+    properties:
+      template: "The Template"
+  sink:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+
+----
+
+Ensure that you've installed https://strimzi.io/[Strimzi] and created a topic named `my-topic` in the current namespace.
+Make also sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `json-schema-validator-action-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the action using the following command:
+
+[source,shell]
+----
+kubectl apply -f json-schema-validator-action-binding.yaml
+----
+
+==== *Binding to Kafka using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the `kamel bind` command:
+
+[source,shell]
+----
+kamel bind timer-source?message=Hello --step json-schema-validator-action -p "step-0.template=The Template" kafka.strimzi.io/v1beta1:KafkaTopic:my-topic
+----
+
+This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
+
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 06/09: Add a Json Schema Validator Kamelet Action

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

acosentino pushed a commit to branch json-validator
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 4a4a8a7ee0bc0435daa43ff7dd46aa50ccc5ed7e
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 26 13:54:30 2021 +0200

    Add a Json Schema Validator Kamelet Action
---
 .../main/resources/kamelets/json-schema-validator-action.kamelet.yaml   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml
index 76987e8..e240308 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/json-schema-validator-action.kamelet.yaml
@@ -1,7 +1,7 @@
 apiVersion: camel.apache.org/v1alpha1
 kind: Kamelet
 metadata:
-  name: json-schema-validators-action
+  name: json-schema-validator-action
   annotations:
     camel.apache.org/kamelet.support.level: "Preview"
     camel.apache.org/catalog.version: "main-SNAPSHOT"

[camel-kamelets] 01/09: Add a Json Schema Validator Kamelet Action

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

acosentino pushed a commit to branch json-validator
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit d9853751cd9231babdfe4e3d082e9bcfb86d7675
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 26 13:51:46 2021 +0200

    Add a Json Schema Validator Kamelet Action
---
 json-schema-validator-action.kamelet.yaml | 38 +++++++++++++++++++++++++++++++
 1 file changed, 38 insertions(+)

diff --git a/json-schema-validator-action.kamelet.yaml b/json-schema-validator-action.kamelet.yaml
new file mode 100644
index 0000000..76987e8
--- /dev/null
+++ b/json-schema-validator-action.kamelet.yaml
@@ -0,0 +1,38 @@
+apiVersion: camel.apache.org/v1alpha1
+kind: Kamelet
+metadata:
+  name: json-schema-validators-action
+  annotations:
+    camel.apache.org/kamelet.support.level: "Preview"
+    camel.apache.org/catalog.version: "main-SNAPSHOT"
+    camel.apache.org/kamelet.icon: "data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiIHN0YW5kYWxvbmU9Im5vIj8+CjxzdmcKICAgeG1sbnM6ZGM9Imh0dHA6Ly9wdXJsLm9yZy9kYy9lbGVtZW50cy8xLjEvIgogICB4bWxuczpjYz0iaHR0cDovL2NyZWF0aXZlY29tbW9ucy5vcmcvbnMjIgogICB4bWxuczpyZGY9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkvMDIvMjItcmRmLXN5bnRheC1ucyMiCiAgIHhtbG5zOnN2Zz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciCiAgIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIKICAgeG1sbnM6c29kaXBvZGk9Imh0dHA6Ly9zb2RpcG [...]
+    camel.apache.org/provider: "Apache Software Foundation"
+    camel.apache.org/kamelet.group: "Actions"
+  labels:
+    camel.apache.org/kamelet.type: "action"
+spec:
+  definition:
+    title: "Json Schema Validator Action"
+    description: |-
+      Apply a Json Schema Template to validate the payload against.
+
+      The template property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
+    required:
+      - template
+    type: object
+    properties:
+      template:
+        title: Template
+        description: The inline template
+        type: binary
+  dependencies:
+  - "camel:json-validator"
+  - "camel:kamelet"
+  flow:
+    from:
+      uri: "kamelet:source"
+      steps:
+      - to:
+          uri: "json-validator:"
+          parameters:
+            resourceUri: "base64:{{template}}"

[camel-kamelets] 04/09: Add a Json Schema Validator Kamelet Action

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

acosentino pushed a commit to branch json-validator
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 40d7a3d9bf45a36ef71a41f4c1f1c1b914e0a2f8
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 26 13:52:57 2021 +0200

    Add a Json Schema Validator Kamelet Action
---
 .../kamelets/json-schema-validators-action.svg     |  59 +++++++++
 .../ROOT/pages/json-schema-validators-action.adoc  | 140 +++++++++++++++++++++
 2 files changed, 199 insertions(+)

diff --git a/docs/modules/ROOT/assets/images/kamelets/json-schema-validators-action.svg b/docs/modules/ROOT/assets/images/kamelets/json-schema-validators-action.svg
new file mode 100644
index 0000000..fa06352
--- /dev/null
+++ b/docs/modules/ROOT/assets/images/kamelets/json-schema-validators-action.svg
@@ -0,0 +1,59 @@
+<?xml version="1.0" encoding="UTF-8" standalone="no"?>
+<svg
+   xmlns:dc="http://purl.org/dc/elements/1.1/"
+   xmlns:cc="http://creativecommons.org/ns#"
+   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
+   xmlns:svg="http://www.w3.org/2000/svg"
+   xmlns="http://www.w3.org/2000/svg"
+   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
+   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
+   viewBox="0 -256 1792 1792"
+   id="svg3025"
+   version="1.1"
+   inkscape:version="0.48.3.1 r9886"
+   width="100%"
+   height="100%"
+   sodipodi:docname="cog_font_awesome.svg">
+  <metadata
+     id="metadata3035">
+    <rdf:RDF>
+      <cc:Work
+         rdf:about="">
+        <dc:format>image/svg+xml</dc:format>
+        <dc:type
+           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
+      </cc:Work>
+    </rdf:RDF>
+  </metadata>
+  <defs
+     id="defs3033" />
+  <sodipodi:namedview
+     pagecolor="#ffffff"
+     bordercolor="#666666"
+     borderopacity="1"
+     objecttolerance="10"
+     gridtolerance="10"
+     guidetolerance="10"
+     inkscape:pageopacity="0"
+     inkscape:pageshadow="2"
+     inkscape:window-width="640"
+     inkscape:window-height="480"
+     id="namedview3031"
+     showgrid="false"
+     inkscape:zoom="0.13169643"
+     inkscape:cx="896"
+     inkscape:cy="896"
+     inkscape:window-x="0"
+     inkscape:window-y="25"
+     inkscape:window-maximized="0"
+     inkscape:current-layer="svg3025" />
+  <g
+     transform="matrix(1,0,0,-1,121.49153,1285.4237)"
+     id="g3027">
+    <path
+       d="m 1024,640 q 0,106 -75,181 -75,75 -181,75 -106,0 -181,-75 -75,-75 -75,-181 0,-106 75,-181 75,-75 181,-75 106,0 181,75 75,75 75,181 z m 512,109 V 527 q 0,-12 -8,-23 -8,-11 -20,-13 l -185,-28 q -19,-54 -39,-91 35,-50 107,-138 10,-12 10,-25 0,-13 -9,-23 -27,-37 -99,-108 -72,-71 -94,-71 -12,0 -26,9 l -138,108 q -44,-23 -91,-38 -16,-136 -29,-186 -7,-28 -36,-28 H 657 q -14,0 -24.5,8.5 Q 622,-111 621,-98 L 593,86 q -49,16 -90,37 L 362,16 Q 352,7 337,7 323,7 312,18 186,132 147,186 q -7 [...]
+       id="path3029"
+       inkscape:connector-curvature="0"
+       style="fill:currentColor" />
+  </g>
+</svg>
diff --git a/docs/modules/ROOT/pages/json-schema-validators-action.adoc b/docs/modules/ROOT/pages/json-schema-validators-action.adoc
new file mode 100644
index 0000000..9eceddb
--- /dev/null
+++ b/docs/modules/ROOT/pages/json-schema-validators-action.adoc
@@ -0,0 +1,140 @@
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
+= image:kamelets/json-schema-validators-action.svg[] Json Schema Validator Action
+
+*Provided by: "Apache Software Foundation"*
+
+*Support Level for this Kamelet is: "Preview"*
+
+Apply a Json Schema Template to validate the payload against.
+
+The template property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
+
+== Configuration Options
+
+The following table summarizes the configuration options available for the `json-schema-validators-action` Kamelet:
+[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
+|===
+| Property| Name| Description| Type| Default| Example
+| *template {empty}* *| Template| The inline template| binary| | 
+|===
+
+NOTE: Fields marked with ({empty}*) are mandatory.
+
+== Usage
+
+This section summarizes how the `json-schema-validators-action` can be used in various contexts.
+
+=== Knative Action
+
+The `json-schema-validators-action` Kamelet can be used as intermediate step in a Knative binding.
+
+.json-schema-validators-action-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: json-schema-validators-action-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: timer-source
+    properties:
+      message: "Hello"
+  steps:
+  - ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: json-schema-validators-action
+    properties:
+      template: "The Template"
+  sink:
+    ref:
+      kind: InMemoryChannel
+      apiVersion: messaging.knative.dev/v1
+      name: mychannel
+
+----
+
+Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `json-schema-validators-action-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the action using the following command:
+
+[source,shell]
+----
+kubectl apply -f json-schema-validators-action-binding.yaml
+----
+
+==== *Binding to Knative using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the `kamel bind` command:
+
+[source,shell]
+----
+kamel bind timer-source?message=Hello --step json-schema-validators-action -p "step-0.template=The Template" channel/mychannel
+----
+
+This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
+
+=== Kafka Action
+
+The `json-schema-validators-action` Kamelet can be used as intermediate step in a Kafka binding.
+
+.json-schema-validators-action-binding.yaml
+[source,yaml]
+----
+apiVersion: camel.apache.org/v1alpha1
+kind: KameletBinding
+metadata:
+  name: json-schema-validators-action-binding
+spec:
+  source:
+    ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: timer-source
+    properties:
+      message: "Hello"
+  steps:
+  - ref:
+      kind: Kamelet
+      apiVersion: camel.apache.org/v1alpha1
+      name: json-schema-validators-action
+    properties:
+      template: "The Template"
+  sink:
+    ref:
+      kind: KafkaTopic
+      apiVersion: kafka.strimzi.io/v1beta1
+      name: my-topic
+
+----
+
+Ensure that you've installed https://strimzi.io/[Strimzi] and created a topic named `my-topic` in the current namespace.
+Make also sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
+
+Save the `json-schema-validators-action-binding.yaml` file into your hard drive, then configure it according to your needs.
+
+You can run the action using the following command:
+
+[source,shell]
+----
+kubectl apply -f json-schema-validators-action-binding.yaml
+----
+
+==== *Binding to Kafka using the Kamel CLI:*
+
+The procedure described above can be simplified into a single execution of the `kamel bind` command:
+
+[source,shell]
+----
+kamel bind timer-source?message=Hello --step json-schema-validators-action -p "step-0.template=The Template" kafka.strimzi.io/v1beta1:KafkaTopic:my-topic
+----
+
+This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
+
+// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 09/09: Add a Json Schema Validator Kamelet Action

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

acosentino pushed a commit to branch json-validator
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 3200e23d572cd794da70a864494d3cd64df2722b
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 26 13:56:23 2021 +0200

    Add a Json Schema Validator Kamelet Action
---
 .../kamelets/json-schema-validators-action.svg     |  59 ---------
 .../ROOT/pages/json-schema-validators-action.adoc  | 140 ---------------------
 2 files changed, 199 deletions(-)

diff --git a/docs/modules/ROOT/assets/images/kamelets/json-schema-validators-action.svg b/docs/modules/ROOT/assets/images/kamelets/json-schema-validators-action.svg
deleted file mode 100644
index fa06352..0000000
--- a/docs/modules/ROOT/assets/images/kamelets/json-schema-validators-action.svg
+++ /dev/null
@@ -1,59 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" standalone="no"?>
-<svg
-   xmlns:dc="http://purl.org/dc/elements/1.1/"
-   xmlns:cc="http://creativecommons.org/ns#"
-   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
-   xmlns:svg="http://www.w3.org/2000/svg"
-   xmlns="http://www.w3.org/2000/svg"
-   xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
-   xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
-   viewBox="0 -256 1792 1792"
-   id="svg3025"
-   version="1.1"
-   inkscape:version="0.48.3.1 r9886"
-   width="100%"
-   height="100%"
-   sodipodi:docname="cog_font_awesome.svg">
-  <metadata
-     id="metadata3035">
-    <rdf:RDF>
-      <cc:Work
-         rdf:about="">
-        <dc:format>image/svg+xml</dc:format>
-        <dc:type
-           rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
-      </cc:Work>
-    </rdf:RDF>
-  </metadata>
-  <defs
-     id="defs3033" />
-  <sodipodi:namedview
-     pagecolor="#ffffff"
-     bordercolor="#666666"
-     borderopacity="1"
-     objecttolerance="10"
-     gridtolerance="10"
-     guidetolerance="10"
-     inkscape:pageopacity="0"
-     inkscape:pageshadow="2"
-     inkscape:window-width="640"
-     inkscape:window-height="480"
-     id="namedview3031"
-     showgrid="false"
-     inkscape:zoom="0.13169643"
-     inkscape:cx="896"
-     inkscape:cy="896"
-     inkscape:window-x="0"
-     inkscape:window-y="25"
-     inkscape:window-maximized="0"
-     inkscape:current-layer="svg3025" />
-  <g
-     transform="matrix(1,0,0,-1,121.49153,1285.4237)"
-     id="g3027">
-    <path
-       d="m 1024,640 q 0,106 -75,181 -75,75 -181,75 -106,0 -181,-75 -75,-75 -75,-181 0,-106 75,-181 75,-75 181,-75 106,0 181,75 75,75 75,181 z m 512,109 V 527 q 0,-12 -8,-23 -8,-11 -20,-13 l -185,-28 q -19,-54 -39,-91 35,-50 107,-138 10,-12 10,-25 0,-13 -9,-23 -27,-37 -99,-108 -72,-71 -94,-71 -12,0 -26,9 l -138,108 q -44,-23 -91,-38 -16,-136 -29,-186 -7,-28 -36,-28 H 657 q -14,0 -24.5,8.5 Q 622,-111 621,-98 L 593,86 q -49,16 -90,37 L 362,16 Q 352,7 337,7 323,7 312,18 186,132 147,186 q -7 [...]
-       id="path3029"
-       inkscape:connector-curvature="0"
-       style="fill:currentColor" />
-  </g>
-</svg>
diff --git a/docs/modules/ROOT/pages/json-schema-validators-action.adoc b/docs/modules/ROOT/pages/json-schema-validators-action.adoc
deleted file mode 100644
index 9eceddb..0000000
--- a/docs/modules/ROOT/pages/json-schema-validators-action.adoc
+++ /dev/null
@@ -1,140 +0,0 @@
-// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT
-= image:kamelets/json-schema-validators-action.svg[] Json Schema Validator Action
-
-*Provided by: "Apache Software Foundation"*
-
-*Support Level for this Kamelet is: "Preview"*
-
-Apply a Json Schema Template to validate the payload against.
-
-The template property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
-
-== Configuration Options
-
-The following table summarizes the configuration options available for the `json-schema-validators-action` Kamelet:
-[width="100%",cols="2,^2,3,^2,^2,^3",options="header"]
-|===
-| Property| Name| Description| Type| Default| Example
-| *template {empty}* *| Template| The inline template| binary| | 
-|===
-
-NOTE: Fields marked with ({empty}*) are mandatory.
-
-== Usage
-
-This section summarizes how the `json-schema-validators-action` can be used in various contexts.
-
-=== Knative Action
-
-The `json-schema-validators-action` Kamelet can be used as intermediate step in a Knative binding.
-
-.json-schema-validators-action-binding.yaml
-[source,yaml]
-----
-apiVersion: camel.apache.org/v1alpha1
-kind: KameletBinding
-metadata:
-  name: json-schema-validators-action-binding
-spec:
-  source:
-    ref:
-      kind: Kamelet
-      apiVersion: camel.apache.org/v1alpha1
-      name: timer-source
-    properties:
-      message: "Hello"
-  steps:
-  - ref:
-      kind: Kamelet
-      apiVersion: camel.apache.org/v1alpha1
-      name: json-schema-validators-action
-    properties:
-      template: "The Template"
-  sink:
-    ref:
-      kind: InMemoryChannel
-      apiVersion: messaging.knative.dev/v1
-      name: mychannel
-
-----
-
-Make sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
-
-Save the `json-schema-validators-action-binding.yaml` file into your hard drive, then configure it according to your needs.
-
-You can run the action using the following command:
-
-[source,shell]
-----
-kubectl apply -f json-schema-validators-action-binding.yaml
-----
-
-==== *Binding to Knative using the Kamel CLI:*
-
-The procedure described above can be simplified into a single execution of the `kamel bind` command:
-
-[source,shell]
-----
-kamel bind timer-source?message=Hello --step json-schema-validators-action -p "step-0.template=The Template" channel/mychannel
-----
-
-This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
-
-=== Kafka Action
-
-The `json-schema-validators-action` Kamelet can be used as intermediate step in a Kafka binding.
-
-.json-schema-validators-action-binding.yaml
-[source,yaml]
-----
-apiVersion: camel.apache.org/v1alpha1
-kind: KameletBinding
-metadata:
-  name: json-schema-validators-action-binding
-spec:
-  source:
-    ref:
-      kind: Kamelet
-      apiVersion: camel.apache.org/v1alpha1
-      name: timer-source
-    properties:
-      message: "Hello"
-  steps:
-  - ref:
-      kind: Kamelet
-      apiVersion: camel.apache.org/v1alpha1
-      name: json-schema-validators-action
-    properties:
-      template: "The Template"
-  sink:
-    ref:
-      kind: KafkaTopic
-      apiVersion: kafka.strimzi.io/v1beta1
-      name: my-topic
-
-----
-
-Ensure that you've installed https://strimzi.io/[Strimzi] and created a topic named `my-topic` in the current namespace.
-Make also sure you have xref:latest@camel-k::installation/installation.adoc[Camel K installed] into the Kubernetes cluster you're connected to.
-
-Save the `json-schema-validators-action-binding.yaml` file into your hard drive, then configure it according to your needs.
-
-You can run the action using the following command:
-
-[source,shell]
-----
-kubectl apply -f json-schema-validators-action-binding.yaml
-----
-
-==== *Binding to Kafka using the Kamel CLI:*
-
-The procedure described above can be simplified into a single execution of the `kamel bind` command:
-
-[source,shell]
-----
-kamel bind timer-source?message=Hello --step json-schema-validators-action -p "step-0.template=The Template" kafka.strimzi.io/v1beta1:KafkaTopic:my-topic
-----
-
-This will create the KameletBinding under the hood and apply it to the current namespace in the cluster.
-
-// THIS FILE IS AUTOMATICALLY GENERATED: DO NOT EDIT

[camel-kamelets] 07/09: Add a Json Schema Validator Kamelet Action

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

acosentino pushed a commit to branch json-validator
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit dcb7dd9a26ec8d3f00338051170d94715e548b0f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Jul 26 13:54:43 2021 +0200

    Add a Json Schema Validator Kamelet Action
---
 docs/modules/ROOT/nav.adoc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/modules/ROOT/nav.adoc b/docs/modules/ROOT/nav.adoc
index 5b397ea..71a6445 100644
--- a/docs/modules/ROOT/nav.adoc
+++ b/docs/modules/ROOT/nav.adoc
@@ -69,7 +69,7 @@
 * xref:ROOT:jms-apache-artemis-sink.adoc[image:kamelets/jms-apache-artemis-sink.svg[] JMS - Apache Artemis Kamelet Sink]
 * xref:ROOT:jms-apache-artemis-source.adoc[image:kamelets/jms-apache-artemis-source.svg[] JMS - Apache Artemis Kamelet Source]
 * xref:ROOT:json-deserialize-action.adoc[image:kamelets/json-deserialize-action.svg[] Json Deserialize Action]
-* xref:ROOT:json-schema-validators-action.adoc[image:kamelets/json-schema-validators-action.svg[] Json Schema Validator Action]
+* xref:ROOT:json-schema-validator-action.adoc[image:kamelets/json-schema-validator-action.svg[] Json Schema Validator Action]
 * xref:ROOT:json-serialize-action.adoc[image:kamelets/json-serialize-action.svg[] Json Serialize Action]
 * xref:ROOT:jsonata-action.adoc[image:kamelets/jsonata-action.svg[] Jsonata Action]
 * xref:ROOT:kafka-manual-commit-action.adoc[image:kamelets/kafka-manual-commit-action.svg[] Kafka Manual Commit Action]