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-kamelets.git

commit f8eda52bb426f54e9348b34f6dcc2c21b69d107c
Author: Andrea Cosentino <[email protected]>
AuthorDate: Mon Mar 21 13:54:34 2022 +0100

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

diff --git a/kamelets/jsonata-action.kamelet.yaml 
b/kamelets/jsonata-action.kamelet.yaml
index 7b15008..dc79e4a 100644
--- a/kamelets/jsonata-action.kamelet.yaml
+++ b/kamelets/jsonata-action.kamelet.yaml
@@ -31,8 +31,6 @@ spec:
     title: "Jsonata Action"
     description: |-
       Apply a Jsonata Transformation.
-
-      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:jsonata"
   - "camel:kamelet"
@@ -51,4 +51,4 @@ spec:
       - to:
           uri: "jsonata:"
           parameters:
-            resourceUri: "base64:{{template}}"
+            resourceUri: "{{template}}"

Reply via email to