davsclaus commented on issue #3117:
URL: 
https://github.com/apache/camel-kamelets/issues/3117#issuecomment-7024612983

   **Status (2026-11-19 evening): a default data type on every Kamelet where 
the body is fixed**
   
   The body type validator of Camel (CAMEL-25928) reads only the `default` of 
`spec.dataTypes.in`/`out`, and that transformer's body types. So every Kamelet 
with a fixed body gets a default. Since CAMEL-27258 (apache/camel#30453, 
merged), a source's default reaches the consuming route. Each PR checks every 
default with `camel run` and the Citrus tests, and drops a default that would 
break valid input, giving the reason in the YAML.
   
   | PR | Batch | Notes |
   |---|---|---|
   | #3296 | google-mail-source | JSON text was encoded twice since 
CAMEL-27258; fixed |
   | #3297 | AWS | draft; `aws-cloudtrail-source` text → json; `aws-ddb-sink` 
dropped (the default would run before the template sets the operation) |
   | #3301 | Azure and Google | draft; `google-vertexai-sink` dropped (text 
breaks embeddings, rawPredict and multimodal) |
   | #3302 | MinIO and SSH sources | draft; ftp, ftps, sftp and ceph dropped 
(with stream caching off, `binary` would read large files into memory) |
   | #3300 | Pulsar and MQTT 5 sources | draft |
   | #3298 | databases, search, NoSQL | draft; `mongodb-sink` dropped (Jackson 
would change ObjectId and Date fields) |
   | #3305 | SaaS | draft; `slack-sink` dropped (a Slack Message object would 
become its toString) |
   | #3303 | counter, cron, Docling, Tika | draft; counter-source gives a 
String instead of an Integer |
   | #3299 | actions | `out: struct` dropped, waiting on a Camel transformer 
registry fix |
   | #3304 | the 16 sources that already had a default | draft; tests and 
descriptions for what the consuming route now gets |
   
   The drafts wait for a Camel 4.24.0-SNAPSHOT with CAMEL-27258. 
apache/camel#30458 fixes a regression of CAMEL-27258 that the Avro and Protobuf 
data-type tests show: a stream cache was taken for a POJO.
   
   **Camel changes in progress, for the Kamelets that wait on them:**
   - a no-op data type;
   - `json` keeps text that is already JSON;
   - `binary` keeps a `File`;
   - keep a specific media type;
   - a data type that keeps a Map or a List;
   - the validator checks a `text` input;
   - the body type metadata fixes.
   
   _Claude Code on behalf of Claus Ibsen_
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to