davsclaus opened a new pull request, #31206: URL: https://github.com/apache/camel/pull/31206
Part of [CAMEL-27980](https://issues.apache.org/jira/browse/CAMEL-27980), item 2. The YAML route examples in the docs used scalar types that the YAML DSL schema (`camelYamlDsl.json`) rejects: - a number or boolean where the schema expects a string: `timeout: 5000`, `completionTimeout: 2000`, `constant: true` - a quoted boolean where the schema expects a boolean: `parallelProcessing: "true"`, `streaming: "true"` The runtime and the Camel YAML validator (`camel validate`, `camel_validate_source`) accept both (CAMEL-24694). The schema keeps the real types on purpose, because Kaoto, TUI completion and the catalog docs depend on them. A tool that validates with the plain schema still saw the documented examples as wrong. This PR changes the docs, not the schema. Changes: - 120 examples in 66 pages (EIPs, user manual, components) now validate against the schema. Only scalar values change (145 lines). - The 53 catalog copies of these pages and `eip-samples.json` (the fallback of `camel_catalog_sample`) are regenerated. - 4 examples are left as they are, and they are correct: 3 put a property placeholder on a boolean option (`disabled: "{{ordersEnabled}}"`), which the schema cannot express, and one is the custom step example in `yaml-dsl.adoc`. A spot check of the changed forms with `camel_validate_source` passes. _Claude Code on behalf of davsclaus_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_012nJsFsjqqFiwroeHRWaKbS -- 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]
