ammachado opened a new pull request, #23445:
URL: https://github.com/apache/camel/pull/23445
# Description
Fix a series of documentation errors in `simple-language.adoc`:
- **`sysenv.key`**: corrected description from "JVM system property" to "OS
environment variable" (both table entry and prose paragraph); the `sys.key`
prefix is for JVM system properties, `sysenv.key` reads OS environment variables
- **Date function table**: fix typo `data:command` -> `date:command` in the
cross-reference text of two table rows
- **`isAlpha` examples**: add missing closing parentheses (`${isAlpha('Hello
World'}` -> `${isAlpha('Hello World')}`)
- **`average` prose**: fix wrong function name `${avg()}` -> `${average()}`
- **`floor` prose**: replace copy-pasted `${ceil(...)}` examples with
correct `${floor(...)}` ones
- **`sum` prose**: fix missing opening brace (`$sum(...)` -> `${sum(...)}`)
- **`toPrettyJson`**: replace literal `TODO:` placeholder with an actual
pretty-printed JSON output example
- **XPath section**: replace copy-pasted `jsonpath()` examples with correct
`xpath()` expressions matching the XML payload shown above
- **`lowercase`/`uppercase` examples**: replace backtick with closing single
quote (was breaking AsciiDoc inline monospace rendering)
- **`pad` examples**: replace invalid single-argument form `${pad(5)}`
(rejected by the parser) with the correct two-argument form `${pad(${body},5)}`
- **Chain operator multi-chain example**: fix `->` to `~>` on the last link
- **AND/OR operator examples**: remove spurious single quote inside
`${header.type'}` -> `${header.type}`
- **Init block example**: add missing closing `)` in `${uppercase('Hello
${body}')}`
- **`@BindToRegistry` tip**: close unclosed string literal (`"foo-function)`
-> `"foo-function"`)
- **`JSon` -> `JSON`**: normalize inconsistent capitalization throughout the
document
# Target
- [x] I checked that the commit is targeting the correct branch (Camel 4
uses the `main` branch)
# Tracking
- [x] If this is a large change, bug fix, or code improvement, I checked
there is a [JIRA issue](https://issues.apache.org/jira/browse/CAMEL) filed for
the change (usually before you start working on it).
# Apache Camel coding standards and style
- [x] I checked that each commit in the pull request has a meaningful
subject line and body.
- [x] I have run `mvn clean install -DskipTests` locally from root folder
and I have committed all auto-generated changes.
_Claude Code on behalf of Adriano Machado_
--
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]