[
https://issues.apache.org/jira/browse/CAMEL-26295?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reassigned CAMEL-26295:
-----------------------------------
Assignee: Claus Ibsen
> camel-jbang - the source editor checks the message body of a YAML route only
> when the file is saved
> ---------------------------------------------------------------------------------------------------
>
> Key: CAMEL-26295
> URL: https://issues.apache.org/jira/browse/CAMEL-26295
> Project: Camel
> Issue Type: Improvement
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> The source editor of the Camel CLI marks the problems of a YAML route as soon
> as the file opens and while you type: endpoint URIs and options, Simple
> expressions and Kamelets (SourceChecks.check). The checks of the full YAML
> validator, which include following the message body through the steps of a
> route with the body types of the catalog (TextBodyFlow and BodyTypeFlow,
> CAMEL-24844), run only when the file is saved (checkOnSave).
> So a route such as from file, unmarshal json, to file shows no problem when
> it is opened or edited. Only when it is saved, the save is refused and the to
> line is marked: "to: file needs the body as text, bytes, a stream or a file,
> but the body here is parsed data (a Map or a List), not text - unmarshal:
> json turns the text into data: add marshal: json before this step" (the
> screenshot camel-tui-source-body-type-problem.png of the Message Body Types
> page, CAMEL-25928).
> Run the body checks of the validator as the file opens and while you type
> too, with the other checks, so the problem shows where it is made. The full
> validator is slower than the line checks, so it may need to run after a pause
> in typing, or in the background.
> _Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)