You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by ap...@apache.org on 2024/03/11 11:47:55 UTC

(camel-examples) branch main updated: Use camel case notation for yaml attributes

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

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


The following commit(s) were added to refs/heads/main by this push:
     new cecf9926 Use camel case notation for yaml attributes
cecf9926 is described below

commit cecf9926ae43c735174cce5ca385cc424227c238
Author: Aurélien Pupier <ap...@redhat.com>
AuthorDate: Mon Mar 11 11:37:24 2024 +0100

    Use camel case notation for yaml attributes
    
    dashed case has been deprecated few versions ago
    
    Signed-off-by: Aurélien Pupier <ap...@redhat.com>
---
 .../src/main/resources/myroutes/my-yaml-route.camel.yaml       | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/routes-configuration/src/main/resources/myroutes/my-yaml-route.camel.yaml b/routes-configuration/src/main/resources/myroutes/my-yaml-route.camel.yaml
index 0377d216..3639f6d0 100644
--- a/routes-configuration/src/main/resources/myroutes/my-yaml-route.camel.yaml
+++ b/routes-configuration/src/main/resources/myroutes/my-yaml-route.camel.yaml
@@ -17,7 +17,7 @@
 
 - route:
     # refer to the route configuration by the id to use for this route
-    route-configuration-id: "yamlError"
+    routeConfigurationId: "yamlError"
     from:
       uri: "timer:yaml?period=3s"
       steps:
@@ -26,8 +26,8 @@
         - to:
             uri: "log:yaml"
             parameters:
-              show-body-type: false
-              show-exchange-pattern: false
-        - throw-exception:
-            exception-type: "java.lang.IllegalArgumentException"
+              showBodyType: false
+              showExchangePattern: false
+        - throwException:
+            exceptionType: "java.lang.IllegalArgumentException"
             message: "Error from yaml"