davsclaus opened a new pull request, #28438:
URL: https://github.com/apache/camel/pull/28438

   JIRA: https://issues.apache.org/jira/browse/CAMEL-26293
   
   ## What
   
   I swept the code blocks of every `.adoc` in the repository: 1,755 files, 
also the pages the doc tests of the build do not read. The checks were:
   - YAML routes, with the checks of `camel validate source`;
   - JSON blocks, which must parse;
   - XML blocks, which must be well-formed;
   - properties blocks with `camel.*` keys.
   
   Five examples were wrong. Each is fixed against the code:
   
   | Page | Was | Now |
   | --- | --- | --- |
   | `route-configuration.adoc` (YAML tab) | `${header.CamelTimerCounter}` | 
the timer sets `CamelTimerCounter` as an exchange property, and only with 
`includeMetadata=true`: `${exchangeProperty.CamelTimerCounter}` with 
`includeMetadata: true` |
   | `using-propertyplaceholder.adoc` (all tabs) | 
`elasticsearch:foo?query={{myQuery?nested=false}}` | elasticsearch has no 
`query` option: the query of the `Search` operation is the body, so `setBody` 
with the placeholder, then `elasticsearch:foo?operation=Search` |
   | `aws-secrets-manager-component.adoc`, `security.adoc` | 
`camel.vault.aws.useDefaultCredentialProvider`, 
`CAMEL_VAULT_AWS_USE_DEFAULT_CREDENTIALS_PROVIDER=accessKey` | 
`camel.vault.aws.defaultCredentialsProvider = true`, `...=true` |
   | `security.adoc` (Google Secret Manager) | `camel.vault.aws.projectId` | 
`camel.vault.gcp.projectId` |
   | `opentelemetry2.adoc` | `camel.mdc.customHeaders` | 
`camel.mdc.customExchangeHeaders` (`MdcConfigurationProperties`) |
   
   The catalog copies of the two component pages are updated with them.
   
   The other findings are right where they are, and are left as they are:
   - XML fragments such as `<camelContext logMask="true">`;
   - `endpoint.adoc` showing the unescaped `&` as the error;
   - Kamelets of the project, and the Kamelet properties that come from 
`application.properties`;
   - the custom Simple function `${foo}` and the custom YAML step `myStep`;
   - the `salesforce:cheese` route that fails on purpose in 
`route-controller.adoc`;
   - Spring Boot properties;
   - olingo, which the doc tests skip already.
   
   ## Tests
   
   The sweep, run again on this branch, reports none of the five.
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_0128ThHB3iQdrvSRLVBGRrdP
   


-- 
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