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 11:11:19 UTC

[camel-kamelets] branch main updated (e7930be -> 590cf8c)

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 e7930be  Use URI notation for some of the parameters we define in actions - Velocity Action
     new d85e074  Use URI notation for some of the parameters we define in actions - XJ Action
     new 7bda814  Use URI notation for some of the parameters we define in actions - XJ Action
     new da64772  Use URI notation for some of the parameters we define in actions - XJ Action
     new 590cf8c  Use URI notation for some of the parameters we define in actions - XJ Action

The 4 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/xj-template-action.kamelet.yaml                       | 10 +++++-----
 .../main/resources/kamelets/xj-template-action.kamelet.yaml    | 10 +++++-----
 2 files changed, 10 insertions(+), 10 deletions(-)

[camel-kamelets] 04/04: Use URI notation for some of the parameters we define in actions - XJ 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 590cf8c772d9fe8d5350d4e21b332c5a6ea9aabb
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 23 12:09:46 2022 +0100

    Use URI notation for some of the parameters we define in actions - XJ Action
---
 .../src/main/resources/kamelets/xj-template-action.kamelet.yaml         | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml
index bf754f3..2296991 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml
@@ -30,7 +30,7 @@ spec:
   definition:
     title: "XJ Template Action"
     description: |-
-      Apply the XJ Identity Transformation to transform JSON to XML and XML to JSON. 
+      Apply the XJ Template Transformation to transform JSON to XML and XML to JSON. 
     required:
       - direction
       - template

[camel-kamelets] 01/04: Use URI notation for some of the parameters we define in actions - XJ 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 d85e07473a1952dccb94d8c97c887d7cb67a3252
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 23 11:51:44 2022 +0100

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

diff --git a/kamelets/xj-template-action.kamelet.yaml b/kamelets/xj-template-action.kamelet.yaml
index e3af150..bf754f3 100644
--- a/kamelets/xj-template-action.kamelet.yaml
+++ b/kamelets/xj-template-action.kamelet.yaml
@@ -31,8 +31,6 @@ spec:
     title: "XJ Template Action"
     description: |-
       Apply the XJ Identity Transformation to transform JSON to XML and XML to JSON. 
-
-      The template property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
     required:
       - direction
       - template
@@ -45,7 +43,9 @@ spec:
       template:
         title: Template
         description: The inline template to apply a transformation through template.
-        type: binary
+        type: string
+        example: "file:////template.vm"
+        pattern: "^(http|https|file|classpath)://.*"
   dependencies:
   - "camel:xj"
   - "camel:kamelet"
@@ -56,5 +56,5 @@ spec:
       - to:
           uri: "xj:"
           parameters:
-            resourceUri: "base64:{{template}}"
+            resourceUri: "{{template}}"
             transformDirection: "{{direction}}"

[camel-kamelets] 03/04: Use URI notation for some of the parameters we define in actions - XJ 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 da64772b9767724fe0ef9566e1782e35fa90aeac
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 23 12:08:44 2022 +0100

    Use URI notation for some of the parameters we define in actions - XJ Action
---
 kamelets/xj-template-action.kamelet.yaml | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/kamelets/xj-template-action.kamelet.yaml b/kamelets/xj-template-action.kamelet.yaml
index bf754f3..2296991 100644
--- a/kamelets/xj-template-action.kamelet.yaml
+++ b/kamelets/xj-template-action.kamelet.yaml
@@ -30,7 +30,7 @@ spec:
   definition:
     title: "XJ Template Action"
     description: |-
-      Apply the XJ Identity Transformation to transform JSON to XML and XML to JSON. 
+      Apply the XJ Template Transformation to transform JSON to XML and XML to JSON. 
     required:
       - direction
       - template

[camel-kamelets] 02/04: Use URI notation for some of the parameters we define in actions - XJ 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 7bda8142f2a0ab4e03cdcd6d97174867acf51f1f
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Mar 23 11:52:37 2022 +0100

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

diff --git a/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml
index e3af150..bf754f3 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/xj-template-action.kamelet.yaml
@@ -31,8 +31,6 @@ spec:
     title: "XJ Template Action"
     description: |-
       Apply the XJ Identity Transformation to transform JSON to XML and XML to JSON. 
-
-      The template property needs to be encoded in base64, so when you pass it as parameter, don't forget to encode it.
     required:
       - direction
       - template
@@ -45,7 +43,9 @@ spec:
       template:
         title: Template
         description: The inline template to apply a transformation through template.
-        type: binary
+        type: string
+        example: "file:////template.vm"
+        pattern: "^(http|https|file|classpath)://.*"
   dependencies:
   - "camel:xj"
   - "camel:kamelet"
@@ -56,5 +56,5 @@ spec:
       - to:
           uri: "xj:"
           parameters:
-            resourceUri: "base64:{{template}}"
+            resourceUri: "{{template}}"
             transformDirection: "{{direction}}"