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:00 UTC
[camel-kamelets] 02/04: Use URI notation for some of the parameters we define in actions - XJ Action
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}}"