davsclaus opened a new pull request, #27582: URL: https://github.com/apache/camel/pull/27582
https://issues.apache.org/jira/browse/CAMEL-25377 Follow-up of CAMEL-25370 (#27421). When `optionsFilter` matches none of an EIP's own options, `camel_catalog_doc` lists the options of the EIP's elements under `nestedOptions`, with a hint that shows where to write them. Two gaps are closed: **1. The YAML key of the element.** The element was named by its catalog name, which is not always its YAML key: `routeTemplate`'s `templateParameter` is written as `parameters:`, so the hint said `templateParameter: [{defaultValue: ...}]`, which the YAML DSL rejects. The key now comes from `schemas/camelYamlDsl-model.json`, which the catalog ships. A child with the same name is used as is. Otherwise the child whose model has the same title is used (`routeTemplateParameter` and `templateParameter` are both "Template Parameter"). If the catalog has no YAML model, the catalog name is used, as before. **2. The error handler's options.** `errorHandler` got no nested options: they sit in the models of its kinds (`deadLetterChannel`, `defaultErrorHandler`, ...) behind `errorHandlerType`. For an element written as one of its kinds, the kinds are now searched: `camel_catalog_doc errorHandler optionsFilter=deadLetterUri` answers `deadLetterUri` under `deadLetterChannel`, with the hint `deadLetterChannel: {deadLetterUri: ...}`. An option that several kinds have is listed once, with the other kinds in `alsoUnder`, so the filter `redelivery` gives 8 entries instead of 29. The same applies to the other elements written as a kind: `marshal` with `prettyPrint` lists the 9 data formats that have it, and `circuitBreaker` with `timeout` lists the `resilience4jConfiguration` and `faultToleranceConfiguration` options. Tests: `CatalogDocsTest` has 3 new tests (YAML key, error handler kinds with `alsoUnder`, fallback). `CatalogDocsTest`, `CatalogSamplesTest` and `AuthoringToolsTest` pass. The MCP doc page is updated. 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m -- 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]
