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:46 UTC

[camel-kamelets] 15/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 c95a4ef325c4ba357a9fda2a2e1594616586db80
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 9 14:05:10 2023 +0100

    Convert all the parameters with multiple possible values to enum - XJ kamelets
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/xj-identity-action.kamelet.yaml | 3 ++-
 kamelets/xj-template-action.kamelet.yaml | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/kamelets/xj-identity-action.kamelet.yaml b/kamelets/xj-identity-action.kamelet.yaml
index f13d61ee..c469f9ad 100644
--- a/kamelets/xj-identity-action.kamelet.yaml
+++ b/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/kamelets/xj-template-action.kamelet.yaml b/kamelets/xj-template-action.kamelet.yaml
index c364bdc7..bcb1918b 100644
--- a/kamelets/xj-template-action.kamelet.yaml
+++ b/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.