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

acosentino pushed a commit to branch 3.20.x
in repository https://gitbox.apache.org/repos/asf/camel-kamelets.git

commit bb130a78693c2b9c0d0b634bfcad1cda0bca2822
Author: Andrea Cosentino <[email protected]>
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 <[email protected]>
---
 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.

Reply via email to