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/23 10:08:34 UTC

[camel-kamelets] branch main updated (7ef5a89 -> 3a36c5e)

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

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


    from 7ef5a89  fix: escape text to prevent auto links (2)
     new da2f715  Use URI notation for some of the parameters we define in actions - Mustache Action
     new 3a36c5e  Use URI notation for some of the parameters we define in actions - Mustache Action

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


Summary of changes:
 kamelets/mustache-template-action.kamelet.yaml                    | 8 ++++----
 .../main/resources/kamelets/mustache-template-action.kamelet.yaml | 8 ++++----
 2 files changed, 8 insertions(+), 8 deletions(-)

[camel-kamelets] 01/02: Use URI notation for some of the parameters we define in actions - Mustache Action

Posted by ac...@apache.org.
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 da2f715f80abdc7ea31196d1a4a0a0a14fd58276
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 23 11:02:45 2022 +0100

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

diff --git a/kamelets/mustache-template-action.kamelet.yaml b/kamelets/mustache-template-action.kamelet.yaml
index 2adff66..ddf4ea6 100644
--- a/kamelets/mustache-template-action.kamelet.yaml
+++ b/kamelets/mustache-template-action.kamelet.yaml
@@ -31,8 +31,6 @@ spec:
     title: "Mustache Template Action"
     description: |-
       Apply a Mustache Template.
-
-      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.mustache"
+        pattern: "^(http|https|file|classpath)://.*"
   dependencies:
   - "camel:mustache"
   - "camel:kamelet"
@@ -51,4 +51,4 @@ spec:
       - to:
           uri: "mustache:"
           parameters:
-            resourceUri: "base64:{{template}}"
+            resourceUri: "{{template}}"

[camel-kamelets] 02/02: Use URI notation for some of the parameters we define in actions - Mustache Action

Posted by ac...@apache.org.
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 3a36c5e77110e50f493172e3a004c87164aab1eb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 23 11:04:00 2022 +0100

    Use URI notation for some of the parameters we define in actions - Mustache Action
---
 .../main/resources/kamelets/mustache-template-action.kamelet.yaml | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/mustache-template-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/mustache-template-action.kamelet.yaml
index 2adff66..ddf4ea6 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/mustache-template-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/mustache-template-action.kamelet.yaml
@@ -31,8 +31,6 @@ spec:
     title: "Mustache Template Action"
     description: |-
       Apply a Mustache Template.
-
-      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.mustache"
+        pattern: "^(http|https|file|classpath)://.*"
   dependencies:
   - "camel:mustache"
   - "camel:kamelet"
@@ -51,4 +51,4 @@ spec:
       - to:
           uri: "mustache:"
           parameters:
-            resourceUri: "base64:{{template}}"
+            resourceUri: "{{template}}"