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/28 17:01:37 UTC

[camel-kamelets] branch main updated: Restore required setting for chatId and made documentation clearer.

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

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


The following commit(s) were added to refs/heads/main by this push:
     new 7fde9101 Restore required setting for chatId and made documentation clearer.
7fde9101 is described below

commit 7fde91010d3929e5857c1b105e6965dbe6d325e2
Author: Michael Anstis <ma...@redhat.com>
AuthorDate: Tue Feb 28 14:13:17 2023 +0000

    Restore required setting for chatId and made documentation clearer.
---
 kamelets/telegram-sink.kamelet.yaml                                 | 6 ++++--
 .../src/main/resources/kamelets/telegram-sink.kamelet.yaml          | 6 ++++--
 2 files changed, 8 insertions(+), 4 deletions(-)

diff --git a/kamelets/telegram-sink.kamelet.yaml b/kamelets/telegram-sink.kamelet.yaml
index cbe7bfa2..8a63ed97 100644
--- a/kamelets/telegram-sink.kamelet.yaml
+++ b/kamelets/telegram-sink.kamelet.yaml
@@ -47,7 +47,6 @@ spec:
       - `chat-id` / `ce-chatid`: overrides the default chat where messages are sent to
     required:
       - authorizationToken
-      - chatId
     type: object
     properties:
       authorizationToken:
@@ -60,7 +59,10 @@ spec:
         - urn:camel:group:credentials
       chatId:
         title: Chat ID
-        description: The Chat ID to where you want to send messages by default. Optional if the `chat-id` / `ce-chatid` header is used.
+        description: |-
+          The Chat ID to where you want to send messages by default. 
+          
+          Whilst the Chat ID is not a required Configuration Option it must be provided for every message; either as a Configuration Option or a `chat-id` / `ce-chatid` header.
         type: string
   types:
     out:
diff --git a/library/camel-kamelets/src/main/resources/kamelets/telegram-sink.kamelet.yaml b/library/camel-kamelets/src/main/resources/kamelets/telegram-sink.kamelet.yaml
index cbe7bfa2..8a63ed97 100644
--- a/library/camel-kamelets/src/main/resources/kamelets/telegram-sink.kamelet.yaml
+++ b/library/camel-kamelets/src/main/resources/kamelets/telegram-sink.kamelet.yaml
@@ -47,7 +47,6 @@ spec:
       - `chat-id` / `ce-chatid`: overrides the default chat where messages are sent to
     required:
       - authorizationToken
-      - chatId
     type: object
     properties:
       authorizationToken:
@@ -60,7 +59,10 @@ spec:
         - urn:camel:group:credentials
       chatId:
         title: Chat ID
-        description: The Chat ID to where you want to send messages by default. Optional if the `chat-id` / `ce-chatid` header is used.
+        description: |-
+          The Chat ID to where you want to send messages by default. 
+          
+          Whilst the Chat ID is not a required Configuration Option it must be provided for every message; either as a Configuration Option or a `chat-id` / `ce-chatid` header.
         type: string
   types:
     out: