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:06 UTC
[camel-kamelets] 02/09: Add a Json Schema Validator Kamelet Action
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}}"