Claus Ibsen created CAMEL-27363:
-----------------------------------

             Summary: camel-jbang - camel validate normalize turns setBody: 
constant: "" into constant: {}, so the expression is lost
                 Key: CAMEL-27363
                 URL: https://issues.apache.org/jira/browse/CAMEL-27363
             Project: Camel
          Issue Type: Bug
          Components: camel-jbang
            Reporter: Claus Ibsen
             Fix For: 4.24.0


{{camel validate normalize}} rewrites

{code:yaml}
- setBody:
    constant: ""
{code}

as {{constant: {}}}, which no longer sets an empty body: the expression text is 
lost. Reproduced with a three-line route.

Expected: {{constant: {expression: ""}}} (the canonical form keeps the empty 
text).

Found while adding new Kamelets to the Kamelet catalog (apache/camel-kamelets, 
2026-11-21).



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to