Claus Ibsen created CAMEL-27371:
-----------------------------------
Summary: camel-csv - write a header line from the Map keys, trim
the names of the header option, and a generic error for a null body
Key: CAMEL-27371
URL: https://issues.apache.org/jira/browse/CAMEL-27371
Project: Camel
Issue Type: Improvement
Components: camel-csv
Reporter: Claus Ibsen
# The marshaller writes a header line only when {{header}} gives the column
names. For a List of Maps it cannot use the keys of the first Map, which is the
common case of turning JSON rows into CSV. An option for it would help (the new
{{csv-serialize-action}} Kamelet builds the header line itself).
# {{header}} is split on commas without trimming, so {{id, name}} gives the key
{{" name"}}.
# Unmarshalling a null body fails with a message that mentions {{data.json}}, a
JSON hint in a CSV error.
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)