You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2026/09/13 14:27:14 UTC

(camel) branch main updated: CAMEL-24693: docs - the saga and stop YAML examples validate (option is a list, the when branches have their predicates) (#26373)

This is an automated email from the ASF dual-hosted git repository.

davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/main by this push:
     new faccdfd432cb CAMEL-24693: docs - the saga and stop YAML examples validate (option is a list, the when branches have their predicates) (#26373)
faccdfd432cb is described below

commit faccdfd432cb01a23712078d34d40a2328baa1f2
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Sun Sep 13 16:27:08 2026 +0200

    CAMEL-24693: docs - the saga and stop YAML examples validate (option is a list, the when branches have their predicates) (#26373)
    
    With these two, all 290 YAML examples of the EIP documentation pass the YAML validator.
    
    
    Claude-Session: https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj
    
    Co-authored-by: Claude Fable 5.1 <no...@anthropic.com>
---
 .../resources/org/apache/camel/catalog/docs/saga-eip.adoc          | 7 +++----
 .../resources/org/apache/camel/catalog/docs/stop-eip.adoc          | 6 ++++--
 .../src/main/docs/modules/eips/pages/saga-eip.adoc                 | 7 +++----
 .../src/main/docs/modules/eips/pages/stop-eip.adoc                 | 6 ++++--
 4 files changed, 14 insertions(+), 12 deletions(-)

diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/saga-eip.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/saga-eip.adoc
index 124128079450..0b299d89c359 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/saga-eip.adoc
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/saga-eip.adoc
@@ -673,10 +673,9 @@ Notice the listing below is not using the `Long-Running-Action` header at all.
         - saga:
             propagation: SUPPORTS
             option:
-              key: CreditId
-              expression:
-                simple:
-                  expression: "${body}"
+              - key: CreditId
+                expression:
+                  simple: "${body}"
             compensation: direct:creditRefund
         - bean:
             ref: creditService
diff --git a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stop-eip.adoc b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stop-eip.adoc
index 9809c6c8eea1..661316f75431 100644
--- a/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stop-eip.adoc
+++ b/catalog/camel-catalog/src/generated/resources/org/apache/camel/catalog/docs/stop-eip.adoc
@@ -78,10 +78,12 @@ In YAML you use an empty `stop: {}` node as shown:
       steps:
         - choice:
             when:
-              - steps:
+              - simple: "${body} contains 'Hello'"
+                steps:
                   - to:
                       uri: mock:hello
-              - steps:
+              - simple: "${body} contains 'Bye'"
+                steps:
                   - to:
                       uri: mock:bye
                   - stop: {}
diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/saga-eip.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/saga-eip.adoc
index 124128079450..0b299d89c359 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/saga-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/saga-eip.adoc
@@ -673,10 +673,9 @@ Notice the listing below is not using the `Long-Running-Action` header at all.
         - saga:
             propagation: SUPPORTS
             option:
-              key: CreditId
-              expression:
-                simple:
-                  expression: "${body}"
+              - key: CreditId
+                expression:
+                  simple: "${body}"
             compensation: direct:creditRefund
         - bean:
             ref: creditService
diff --git a/core/camel-core-engine/src/main/docs/modules/eips/pages/stop-eip.adoc b/core/camel-core-engine/src/main/docs/modules/eips/pages/stop-eip.adoc
index 9809c6c8eea1..661316f75431 100644
--- a/core/camel-core-engine/src/main/docs/modules/eips/pages/stop-eip.adoc
+++ b/core/camel-core-engine/src/main/docs/modules/eips/pages/stop-eip.adoc
@@ -78,10 +78,12 @@ In YAML you use an empty `stop: {}` node as shown:
       steps:
         - choice:
             when:
-              - steps:
+              - simple: "${body} contains 'Hello'"
+                steps:
                   - to:
                       uri: mock:hello
-              - steps:
+              - simple: "${body} contains 'Bye'"
+                steps:
                   - to:
                       uri: mock:bye
                   - stop: {}