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/03 10:32:08 UTC

[camel-kamelets] 02/02: Convert all the parameters with multiple possible values to enum - AWS Translate

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

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

commit d10fad80ff17c6f2bd39e4ec3b24444c5327c67a
Author: Andrea Cosentino <an...@gmail.com>
AuthorDate: Fri Feb 3 11:31:25 2023 +0100

    Convert all the parameters with multiple possible values to enum - AWS Translate
    
    Signed-off-by: Andrea Cosentino <an...@gmail.com>
---
 .../src/main/resources/kamelets/aws-translate-action.kamelet.yaml    | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
index de3232ef..db91242a 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/aws-translate-action.kamelet.yaml
@@ -70,9 +70,10 @@ spec:
         example: it
       targetLanguage:
         title: Target Language
-        description: The target language of the translating text. Possible values are ARABIC("ar"), CHINESE_SIMPLIFIED("zh"), CHINESE_TRADITIONAL("zh-TW"), CZECH("cs"), DANISH("da"), DUTCH("nl"), ENGLISH("en"), FINNISH("fi"), FRENCH("fr"), GERMAN("de"), HEBREW("he"), HINDI("hi"), INDONESIAN("id"), ITALIAN("it"), JAPANESE("ja"), KOREAN("ko"), MALAY("ms"), NORWEGIAN("no"), PERSIAN("fa"), POLISH("pl"), PORTUGUESE("pt"), RUSSIAN("ru"), SPANISH("es"), SWEDISH("sv") and TURKISH("tr").
+        description: The target language of the translating text.
         type: string
-        example: en
+        example: it
+        enum: ["ar", "zh", "zh-TW", "cs", "da", "nl", "en", "fi", "fr", "de", "he", "hi", "id", "it", "ja", "ko", "ms", "no", "fa", "pl", "pt", "ru", "es", "sv", "tr"]
       useDefaultCredentialsProvider:
         title: Default Credentials Provider
         description: Set whether the Translate client should expect to load credentials through a default credentials provider or to expect static credentials to be passed in.