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

davsclaus pushed a commit to branch pr/CAMEL-24693-docs-saga-stop
in repository https://gitbox.apache.org/repos/asf/camel.git

commit ec859e6ff704675ab861d2babcdcbcd205017cea
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Sep 13 16:02:14 2026 +0200

    CAMEL-24693: docs - the saga and stop YAML examples validate (option is a 
list, the when branches have their predicates)
    
    With these two, all 290 YAML examples of the EIP documentation pass the 
YAML validator.
    
    Co-Authored-By: Claude Fable 5.1 <[email protected]>
    Claude-Session: https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj
---
 .../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: {}

Reply via email to