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/08 09:01:59 UTC

[camel-kamelets] 01/04: Convert all the parameters with multiple possible values to enum - Cassandra Sink

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

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

commit 530dae61ccadec1dab0e14cd9642aa2348d0ee4c
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Wed Feb 8 09:53:51 2023 +0100

    Convert all the parameters with multiple possible values to enum - Cassandra Sink
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 kamelets/cassandra-sink.kamelet.yaml | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/kamelets/cassandra-sink.kamelet.yaml b/kamelets/cassandra-sink.kamelet.yaml
index 10ce37da..1bd5a7e1 100644
--- a/kamelets/cassandra-sink.kamelet.yaml
+++ b/kamelets/cassandra-sink.kamelet.yaml
@@ -71,9 +71,10 @@ spec:
         - urn:camel:group:credentials
       consistencyLevel:
         title: Consistency Level
-        description: The consistency level to use. Set the value to one of these options - ANY, ONE, TWO, THREE, QUORUM, ALL, LOCAL_QUORUM, EACH_QUORUM, SERIAL, LOCAL_SERIAL, or LOCAL_ONE.
+        description: The consistency level to use.
         type: string
         default: ANY
+        enum: ["ANY", "ONE", "TWO", "THREE", "QUORUM", "ALL", "LOCAL_QUORUM", "EACH_QUORUM", "SERIAL", "LOCAL_SERIAL", "LOCAL_ONE"]
       prepareStatements:
         title: Prepare Statements
         description: If true, specifies to use PreparedStatements as the query. If false, specifies to use regular Statements as the query.
@@ -87,8 +88,9 @@ spec:
         type: string
       extraTypeCodecs:
         title: Extra Type Codecs
-        description: To use a specific comma separated list of Extra Type codecs. Possible values are BLOB_TO_ARRAY, BOOLEAN_LIST_TO_ARRAY, BYTE_LIST_TO_ARRAY, SHORT_LIST_TO_ARRAY, INT_LIST_TO_ARRAY, LONG_LIST_TO_ARRAY, FLOAT_LIST_TO_ARRAY, DOUBLE_LIST_TO_ARRAY, TIMESTAMP_UTC, TIMESTAMP_MILLIS_SYSTEM, TIMESTAMP_MILLIS_UTC, ZONED_TIMESTAMP_SYSTEM, ZONED_TIMESTAMP_UTC, ZONED_TIMESTAMP_PERSISTED, LOCAL_TIMESTAMP_SYSTEM and LOCAL_TIMESTAMP_UTC
+        description: To use a specific comma separated list of Extra Type codecs. 
         type: string
+        enum: ["BLOB_TO_ARRAY", "BOOLEAN_LIST_TO_ARRAY", "BYTE_LIST_TO_ARRAY", "SHORT_LIST_TO_ARRAY", "INT_LIST_TO_ARRAY", "LONG_LIST_TO_ARRAY", "FLOAT_LIST_TO_ARRAY", "DOUBLE_LIST_TO_ARRAY", "TIMESTAMP_UTC", "TIMESTAMP_MILLIS_SYSTEM", "TIMESTAMP_MILLIS_UTC", "ZONED_TIMESTAMP_SYSTEM", "ZONED_TIMESTAMP_UTC", "ZONED_TIMESTAMP_PERSISTED", "LOCAL_TIMESTAMP_SYSTEM", "LOCAL_TIMESTAMP_UTC"]
   types:
     in:
       mediaType: application/json