You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/05/25 19:47:00 UTC

[PR] CAMEL-23610: Normalize YAML DSL in documentation to canonical form [camel]

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

   ## Summary
   
   Normalizes 99 YAML DSL code blocks across 46 documentation files from classic shorthand form to canonical (normalized) form, consistent with the canonical JSON schema introduced in CAMEL-22987.
   
   **Four shorthand patterns were normalized:**
   
   1. **Shorthand `to:`** — `- to: "direct:foo"` → expanded to `- to:` with nested `uri:` field
   2. **Inline `simple:` expression** — `simple: "${body}"` → wrapped with `expression:` / `simple:` / `expression:` canonical structure
   3. **URI with inline query params** — `uri: "file:inbox?move=../backup"` → split into `uri: file:inbox` + `parameters:` block
   4. **Bare `from:` without `route:` wrapper** — `- from:` → wrapped with `- route:` parent
   
   **Scope:**
   - 33 EIP documentation pages (`core/camel-core-engine/src/main/docs/modules/eips/pages/`)
   - 13 user manual pages (`docs/user-manual/modules/ROOT/pages/`)
   
   **Edge cases handled:**
   - `RAW()` syntax in passwords (e.g., `RAW(se+re?t&23)`) — `&` inside `RAW()` is not a param separator
   - Property placeholders with `?` inside (e.g., `{{myQuery?nested=false}}`) — not a query param separator
   - `pollEnrich`/`enrich` EIPs use `expression:` for endpoint URIs, not `uri:`/`parameters:`
   - `endpoint.adoc` has an intentional "YAML::" vs "YAML expanded::" contrast showing both compact and decomposed forms — the compact form was preserved
   
   **Not in scope (intentionally):**
   - Component documentation pages
   - Upgrade guide pages
   
   ## Test plan
   
   - [ ] Spot-checked representative YAML blocks with `camel validate yaml-dsl` (MCP schema validation)
   - [ ] Verified no YAML blocks that intentionally demonstrate shorthand syntax were normalized
   - [ ] Documentation-only change — no code changes, no test impact
   
   _Claude Code on behalf of Claus Ibsen_
   
   Co-Authored-By: Claude Opus 4.6 <no...@anthropic.com>


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23610: Normalize YAML DSL in documentation to canonical form [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23511:
URL: https://github.com/apache/camel/pull/23511#issuecomment-4536890486

   <!-- ci-tested-modules -->
   :test_tube: **CI tested the following changed modules:**
   
   - `core/camel-core-engine`
   - `docs`
   
   > :information_source: Dependent modules were not tested because the total number of affected modules exceeded the threshold (50). Use the `test-dependents` label to force testing all dependents.
   
   <details><summary>Build reactor — dependencies compiled but only changed modules were tested (2 modules)</summary>
   
   - Camel :: Core Engine
   - Camel :: Docs
   
   </details>
   
   ---
   :gear: [View full build and test results](https://github.com/apache/camel/actions/runs/26417156544)


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23610: Normalize YAML DSL in documentation to canonical form [camel]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #23511:
URL: https://github.com/apache/camel/pull/23511#issuecomment-4536804856

   :star2: Thank you for your contribution to the Apache Camel project! :star2:
     :robot: CI automation will test this PR automatically.
   
     :camel: Apache Camel Committers, please review the following items:
   
     * First-time contributors **require MANUAL approval** for the GitHub Actions to run
     * You can use the command `/component-test (camel-)component-name1 (camel-)component-name2..` to request a test from the test bot although they are normally detected and executed by CI.
     * You can label PRs using `skip-tests` and `test-dependents` to fine-tune the checks executed by this PR.
     * Build and test logs are available in the summary page. **Only** [Apache Camel committers](https://camel.apache.org/community/team/#committers) have access to the summary.
     
     :warning: Be careful when sharing logs. Review their contents before sharing them publicly.


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] CAMEL-23610: Normalize YAML DSL in documentation to canonical form [camel]

Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #23511:
URL: https://github.com/apache/camel/pull/23511


-- 
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: commits-unsubscribe@camel.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org