[
https://issues.apache.org/jira/browse/CAMEL-27363?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18149172#comment-18149172
]
Claus Ibsen commented on CAMEL-27363:
-------------------------------------
Fixed by https://github.com/apache/camel/pull/30579 (commit 39c38489e1c5 on
main).
_Claude Code on behalf of Claus Ibsen_
> 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
> Assignee: Claus Ibsen
> Priority: Minor
> 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)