Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use URI notation for some of the parameters we define in actions #855

Merged
merged 4 commits into from
Mar 23, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions kamelets/xj-template-action.kamelet.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ spec:
definition:
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.
Apply the XJ Template Transformation to transform JSON to XML and XML to JSON.
required:
- direction
- template
Expand All @@ -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"
Expand All @@ -56,5 +56,5 @@ spec:
- to:
uri: "xj:"
parameters:
resourceUri: "base64:{{template}}"
resourceUri: "{{template}}"
transformDirection: "{{direction}}"
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ spec:
definition:
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.
Apply the XJ Template Transformation to transform JSON to XML and XML to JSON.
required:
- direction
- template
Expand All @@ -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"
Expand All @@ -56,5 +56,5 @@ spec:
- to:
uri: "xj:"
parameters:
resourceUri: "base64:{{template}}"
resourceUri: "{{template}}"
transformDirection: "{{direction}}"