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:10:58 UTC

[camel-kamelets] branch fix-844-8 created (now 3711ffa)

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

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


      at 3711ffa  Use URI notation for some of the parameters we define in actions - XJ Action

This branch includes the following new commits:

     new a68585c  Use URI notation for some of the parameters we define in actions - XJ Action
     new 2053ab9  Use URI notation for some of the parameters we define in actions - XJ Action
     new 0e102db  Use URI notation for some of the parameters we define in actions - XJ Action
     new 3711ffa  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.


[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 fix-844-8
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit a68585ce6063eb7d027428c577832d7eb85e6831
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 fix-844-8
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 0e102dbb6cc0bd4309f5572db362ae100947956d
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] 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 fix-844-8
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 3711ffa3579c5dad8dc80c9c118f6c8b3aa0b7b3
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] 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 fix-844-8
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit 2053ab9b9ec358d0212c93a69d89e689932b8184
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}}"