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

[camel-kamelets] 05/16: Convert all the parameters with multiple possible values to enum - MongoDB Sink

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 9ace235f414d8870660d6780ba3590f693fc7e64
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Thu Feb 9 10:56:33 2023 +0100

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

diff --git a/kamelets/mongodb-sink.kamelet.yaml b/kamelets/mongodb-sink.kamelet.yaml
index 0eb28514..2ce4225b 100644
--- a/kamelets/mongodb-sink.kamelet.yaml
+++ b/kamelets/mongodb-sink.kamelet.yaml
@@ -69,8 +69,9 @@ spec:
         type: string
       writeConcern:
         title: Write Concern
-        description: The level of acknowledgment requested from MongoDB for write operations. Possible values are ACKNOWLEDGED, W1, W2, W3, UNACKNOWLEDGED, JOURNALED, or MAJORITY.
+        description: The level of acknowledgment requested from MongoDB for write operations.
         type: string
+        enum: ["ACKNOWLEDGED", "W1", "W2", "W3", "UNACKNOWLEDGED", "JOURNALED", "MAJORITY"]
       createCollection:
         title: Collection
         description: Create a collection during initialization if it doesn't exist.