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

jamesnetherton pushed a commit to branch 3.40.x
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git

commit b07a1dde9db4644360abbfc29803473b8d6bf1c9
Author: James Netherton <[email protected]>
AuthorDate: Fri Nov 20 14:10:28 2026 +0000

    Use camelCase YAML DSL keys in documentation examples
    
    Co-Authored-By: Claude Opus 5.5 <[email protected]>
    (cherry picked from commit fa1ac7bb8ca95914733e8ff2cd9c0f41ee68c99c)
---
 .../ROOT/pages/reference/extensions/yaml-dsl.adoc        | 16 ++++++++--------
 .../ROOT/pages/user-guide/defining-camel-routes.adoc     | 12 ++++++------
 extensions-core/yaml-dsl/runtime/src/main/doc/usage.adoc | 16 ++++++++--------
 3 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc 
b/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc
index a086852d686..209d7360b60 100644
--- a/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc
+++ b/docs/modules/ROOT/pages/reference/extensions/yaml-dsl.adoc
@@ -85,11 +85,11 @@ public class GreetingBean {
 
 Camel provides various methods of handling exceptions. Some of these require 
that any exception classes referenced in their DSL definitions are registered 
for reflection.
 
-`*on-exception*`
+`*onException*`
 
 [source,yaml]
 ----
-- on-exception:
+- onException:
     handled:
       constant: "true"
     exception:
@@ -106,7 +106,7 @@ public class MyHandledException {
 }
 ----
 
-`*throw-exception*`
+`*throwException*`
 
 [source,yaml]
 ----
@@ -119,8 +119,8 @@ public class MyHandledException {
             when:
               - simple: "${body} == 'bad value'"
                 steps:
-                  - throw-exception:
-                      exception-type: "org.acme.ForcedException"
+                  - throwException:
+                      exceptionType: "org.acme.ForcedException"
                       message: "Forced exception"
             otherwise:
               steps:
@@ -134,7 +134,7 @@ public class ForcedException {
 }
 ----
 
-`*do-catch*`
+`*doCatch*`
 
 [source,yaml]
 ----
@@ -143,10 +143,10 @@ public class ForcedException {
     from:
       uri: "direct:tryCatch"
       steps:
-        - do-try:
+        - doTry:
             steps:
               - to: "direct:readFile"
-            do-catch:
+            doCatch:
               - exception:
                   - "java.io.FileNotFoundException"
                 steps:
diff --git a/docs/modules/ROOT/pages/user-guide/defining-camel-routes.adoc 
b/docs/modules/ROOT/pages/user-guide/defining-camel-routes.adoc
index e615c1b6fd9..d78bb4d4a8a 100644
--- a/docs/modules/ROOT/pages/user-guide/defining-camel-routes.adoc
+++ b/docs/modules/ROOT/pages/user-guide/defining-camel-routes.adoc
@@ -159,7 +159,7 @@ camel.main.routes-include-pattern = routes/routes.yaml, 
routes/rests.yaml, rests
     from:
       uri: "timer:from-yaml?period=1000"
       steps:
-        - set-body:
+        - setBody:
             constant: "Hello YAML!"
         - to: "log:from-yaml"
 ----
@@ -178,14 +178,14 @@ camel.main.routes-include-pattern = routes/routes.yaml, 
routes/rests.yaml, rests
     from:
       uri: "direct:greet"
       steps:
-        - set-body:
+        - setBody:
             constant: "Hello YAML!"
 ----
 
 .Route Templates
 [source,yaml]
 ----
-- route-template:
+- routeTemplate:
     id: "myTemplate"
     parameters:
       - name: "name"
@@ -196,13 +196,13 @@ camel.main.routes-include-pattern = routes/routes.yaml, 
routes/rests.yaml, rests
     from:
       uri: "timer:{{name}}?period={{myPeriod}}"
       steps:
-      - set-body:
+      - setBody:
           expression:
             simple: "{{greeting}} ${body}"
       - log: "${body}"
 
-- templated-route:
-    route-template-ref: "myTemplate"
+- templatedRoute:
+    routeTemplateRef: "myTemplate"
     parameters:
       - name: "name"
         value: "tick"
diff --git a/extensions-core/yaml-dsl/runtime/src/main/doc/usage.adoc 
b/extensions-core/yaml-dsl/runtime/src/main/doc/usage.adoc
index 9aa928a93ce..15a03ae8f34 100644
--- a/extensions-core/yaml-dsl/runtime/src/main/doc/usage.adoc
+++ b/extensions-core/yaml-dsl/runtime/src/main/doc/usage.adoc
@@ -34,11 +34,11 @@ public class GreetingBean {
 
 Camel provides various methods of handling exceptions. Some of these require 
that any exception classes referenced in their DSL definitions are registered 
for reflection.
 
-`*on-exception*`
+`*onException*`
 
 [source,yaml]
 ----
-- on-exception:
+- onException:
     handled:
       constant: "true"
     exception:
@@ -55,7 +55,7 @@ public class MyHandledException {
 }
 ----
 
-`*throw-exception*`
+`*throwException*`
 
 [source,yaml]
 ----
@@ -68,8 +68,8 @@ public class MyHandledException {
             when:
               - simple: "${body} == 'bad value'"
                 steps:
-                  - throw-exception:
-                      exception-type: "org.acme.ForcedException"
+                  - throwException:
+                      exceptionType: "org.acme.ForcedException"
                       message: "Forced exception"
             otherwise:
               steps:
@@ -83,7 +83,7 @@ public class ForcedException {
 }
 ----
 
-`*do-catch*`
+`*doCatch*`
 
 [source,yaml]
 ----
@@ -92,10 +92,10 @@ public class ForcedException {
     from:
       uri: "direct:tryCatch"
       steps:
-        - do-try:
+        - doTry:
             steps:
               - to: "direct:readFile"
-            do-catch:
+            doCatch:
               - exception:
                   - "java.io.FileNotFoundException"
                 steps:

Reply via email to