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 2023/02/09 13:08:47 UTC
[camel-kamelets] 16/16: Convert all the parameters with multiple possible values to enum - XJ kamelets
This is an automated email from the ASF dual-hosted git repository.
acosentino pushed a commit to branch final-enum-3.20.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git
commit 28391533cac1a84389c0049f6c3e1a42f3c9f00a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 9 14:05:47 2023 +0100
Convert all the parameters with multiple possible values to enum - XJ kamelets
Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
.../src/main/resources/kamelets/xj-identity-action.kamelet.yaml | 3 ++-
.../src/main/resources/kamelets/xj-template-action.kamelet.yaml | 3 ++-
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/library/camel-kamelets/src/main/resources/kamelets/xj-identity-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/xj-identity-action.kamelet.yaml
index f13d61ee..c469f9ad 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/xj-identity-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/xj-identity-action.kamelet.yaml
@@ -37,8 +37,9 @@ spec:
properties:
direction:
title: Direction
- description: The transform direction, possible values are XML2JSON or JSON2XML
+ description: The transform direction.
type: string
+ enum: ["XML2JSON", "JSON2XML"]
dependencies:
- "camel:xj"
- "camel:kamelet"
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 c364bdc7..bcb1918b 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
@@ -38,8 +38,9 @@ spec:
properties:
direction:
title: Direction
- description: The transform direction, possible values are XML2JSON or JSON2XML
+ description: The transform direction.
type: string
+ enum: ["XML2JSON", "JSON2XML"]
template:
title: Template
description: The inline template to apply a transformation through template.