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

davsclaus 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 36fafe3e1 chore: google-mail-source encodes the mail text as JSON once 
(#3296)
36fafe3e1 is described below

commit 36fafe3e188cfa75d563727e42e911165d45220e
Author: Claus Ibsen <[email protected]>
AuthorDate: Fri Nov 20 21:25:24 2026 +0100

    chore: google-mail-source encodes the mail text as JSON once (#3296)
    
    Its out: json default now runs before the consuming route (CAMEL-27258), on
    the JSON string that marshal: json already made, so the text was encoded
    twice ("\"Hello\""). The default data type now does the one encoding.
    
    
    Claude-Session: https://claude.ai/code/session_016Y4dDmBDsSWV117kccuNf9
    
    Co-authored-by: Claude Opus 5.5 <[email protected]>
---
 kamelets/google-mail-source.kamelet.yaml                                | 2 --
 .../src/main/resources/kamelets/google-mail-source.kamelet.yaml         | 2 --
 2 files changed, 4 deletions(-)

diff --git a/kamelets/google-mail-source.kamelet.yaml 
b/kamelets/google-mail-source.kamelet.yaml
index 974db5f28..cd8aa1670 100644
--- a/kamelets/google-mail-source.kamelet.yaml
+++ b/kamelets/google-mail-source.kamelet.yaml
@@ -199,7 +199,5 @@ spec:
     from:
       uri: 
"google-mail-stream://{{index}}?accessToken=RAW({{?accessToken}})&applicationName={{applicationName}}&clientId=RAW({{?clientId}})&clientSecret=RAW({{?clientSecret}})&delay={{delay}}&delegate=RAW({{?delegate}})&labels={{?labels}}&markAsRead={{markAsRead}}&maxResults={{?maxResults}}&query={{query}}&raw={{?raw}}&refreshToken=RAW({{?refreshToken}})&scopes={{?scopes}}&serviceAccountKey=RAW({{?serviceAccountKey}})"
       steps:
-        - marshal:
-            json: {}
         - to:
             uri: kamelet:sink
diff --git 
a/library/camel-kamelets/src/main/resources/kamelets/google-mail-source.kamelet.yaml
 
b/library/camel-kamelets/src/main/resources/kamelets/google-mail-source.kamelet.yaml
index 974db5f28..cd8aa1670 100644
--- 
a/library/camel-kamelets/src/main/resources/kamelets/google-mail-source.kamelet.yaml
+++ 
b/library/camel-kamelets/src/main/resources/kamelets/google-mail-source.kamelet.yaml
@@ -199,7 +199,5 @@ spec:
     from:
       uri: 
"google-mail-stream://{{index}}?accessToken=RAW({{?accessToken}})&applicationName={{applicationName}}&clientId=RAW({{?clientId}})&clientSecret=RAW({{?clientSecret}})&delay={{delay}}&delegate=RAW({{?delegate}})&labels={{?labels}}&markAsRead={{markAsRead}}&maxResults={{?maxResults}}&query={{query}}&raw={{?raw}}&refreshToken=RAW({{?refreshToken}})&scopes={{?scopes}}&serviceAccountKey=RAW({{?serviceAccountKey}})"
       steps:
-        - marshal:
-            json: {}
         - to:
             uri: kamelet:sink

Reply via email to