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

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

commit b00732968be0cf098a1dfe59a8191e0a95ee0ec4
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Mar 21 13:48:22 2022 +0100

    Use URI notation for some of the parameters we define in actions - 
Json-schema validator Action
---
 kamelets/json-schema-validator-action.kamelet.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/kamelets/json-schema-validator-action.kamelet.yaml 
b/kamelets/json-schema-validator-action.kamelet.yaml
index 9f88721..ad1f17f 100644
--- a/kamelets/json-schema-validator-action.kamelet.yaml
+++ b/kamelets/json-schema-validator-action.kamelet.yaml
@@ -31,8 +31,6 @@ spec:
     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
@@ -40,7 +38,9 @@ spec:
       template:
         title: Template
         description: The inline template
-        type: binary
+        type: string
+        example: "file:////template.json"
+        pattern: "^(http|https|file|classpath)://.*"
   dependencies:
   - "camel:json-validator"
   - "camel:kamelet"
@@ -51,4 +51,4 @@ spec:
       - to:
           uri: "json-validator:"
           parameters:
-            resourceUri: "base64:{{template}}"
+            resourceUri: "{{template}}"

Reply via email to