Claus Ibsen created CAMEL-25636:
-----------------------------------
Summary: camel-core - the label of marshal and unmarshal shows the
data format object instead of its name
Key: CAMEL-25636
URL: https://issues.apache.org/jira/browse/CAMEL-25636
Project: Camel
Issue Type: Bug
Components: camel-core
Reporter: Claus Ibsen
Fix For: 4.24.0
The label of a {{marshal}} or {{unmarshal}} step shows the data format object
instead of its name. {{MarshalDefinition}} and {{UnmarshalDefinition}} build
their label and {{toString()}} from {{DataFormatDefinition.toString()}}, which
most data formats don't override. So route-structure and the route diagrams
drawn from it ({{camel cmd route-diagram}}, the {{route-diagram}} dev console,
the camel-jbang monitor) show:
{code}
unmarshal[org.apache.camel.model.dataformat.JsonDataFormat@5a3cf824]
{code}
for this step of the fail-well/error-handling example:
{code}
- unmarshal:
json:
library: Jackson
{code}
The label could use the name of the data format instead, such as
{{unmarshal[json]}}.
Found while working on CAMEL-25466.
_Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)