davsclaus opened a new pull request, #26372:
URL: https://github.com/apache/camel/pull/26372
The YAML schema and the YAML deserializers left the expression of `split`,
`setBody`, `filter` and forty other patterns optional, while the runtime
requires it: a reifier audit found only `sort` tolerating a missing expression
(it defaults to the body). `@Metadata(required = true)` on
`ExpressionNode.expression`, explicit `required` on the twenty `setExpression`
overrides (`sort` false) and on `BasicExpressionNode`, `OnWhenDefinition` and
`PredicateValidatorDefinition`; the schema mojo and the deserializer mojo read
the concrete class's override first. Regenerated: `sort.json`,
`ModelDeserializers.java`, `camelYamlDsl.json` (1,432 "none" branch lines
removed) and the catalog copy. The XML schema already required it through JAXB.
Tests: `ExpressionTest` in camel-yaml-dsl ("no expression" now expects the
rejection, plus the `sort` case). 30 files, 3 generated: read the model change,
treat the schema and deserializer files as its output.
Found while benchmarking a local model against the Camel MCP server
(CAMEL-24698); the run-by-run history stays on a local bench branch.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj
--
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]