davsclaus opened a new pull request, #30677: URL: https://github.com/apache/camel/pull/30677
_Claude Code on behalf of Claus Ibsen (davsclaus)_ Part of [CAMEL-27475](https://issues.apache.org/jira/browse/CAMEL-27475): its "Also" item. This PR is independent of #30676 and is based on `main`. The catalog describes the output of each data type transformer in its body types (`bodyTypes.transformerOut`), including the format of the data: - `application-json` says `json`. - `avro-binary` and `protobuf-binary` say `binary`. Two transformers had no format, although they are the `text` and `binary` data types of the Kamelets: | Transformer | Kamelet data type | Sets Content-Type | Format now | |---|---|---|---| | `text-plain` (`StringDataTypeTransformer`) | `text` | `text/plain` | `text` | | `application-octet-stream` (`ByteArrayDataTypeTransformer`) | `binary` | `application/octet-stream` | `binary` | `text` and `binary` are the format names the catalog uses (`BodyType.format`, CAMEL-25928), the same names as the Kamelet data types. A tool can now tell from the catalog alone what format a Kamelet with `out: text` or `out: binary` gives. `camel doc` prints the format after the output body, as it does for other transformers ("…, as text"). Only the `format` attribute of the `@BodyTypes` annotation changes. The generated transformer JSON in camel-core-processor and its copy in the catalog are regenerated. ### Tests I ran these locally against the changed catalog, all green: - camel-catalog: transformer and body type tests - camel-yaml-dsl-validator: all 377 tests - camel-jbang-core: the Kamelet, catalog, doc, body type and validation tests (457) - camel-jbang-mcp: `KameletToolsTest` and the catalog tool tests No test needed a change: none expected these transformers to have no format. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- 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]
