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 2022/03/21 11:44:03 UTC

[camel-kamelets] 03/06: Use URI notation for some of the parameters we define in actions - Json-patch action

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

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

commit d89bb5f2585155261dba3aa6cd1f6fbbcd6279fd
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Mon Mar 21 12:36:14 2022 +0100

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

diff --git a/kamelets/json-patch-action.kamelet.yaml b/kamelets/json-patch-action.kamelet.yaml
index 227a3b8..330911e 100644
--- a/kamelets/json-patch-action.kamelet.yaml
+++ b/kamelets/json-patch-action.kamelet.yaml
@@ -31,8 +31,6 @@ spec:
     title: "Json Patch Action"
     description: |-
       Apply a Json Patch 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 json patch transformation
-        type: binary
+        type: string
+        example: "file:////template.json"
+        pattern: "^(http|https|file|classpath)://.*"
   dependencies:
   - "camel:json-patch"
   - "camel:kamelet"
@@ -51,4 +51,4 @@ spec:
       - to:
           uri: "json-patch:"
           parameters:
-            resourceUri: "base64:{{template}}"
+            resourceUri: "{{template}}"