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 2023/11/13 13:59:52 UTC

(camel-examples) branch main updated: CAMEL-20108 - replace set-body by setBody (#131)

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-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new a4b9024e CAMEL-20108 - replace set-body by setBody (#131)
a4b9024e is described below

commit a4b9024ef688899816fa82b17bb6c7d76091ccaa
Author: Aurélien Pupier <ap...@redhat.com>
AuthorDate: Mon Nov 13 14:59:46 2023 +0100

    CAMEL-20108 - replace set-body by setBody (#131)
    
    kebab case notation is deprecated in 4.2.0
    
    Signed-off-by: Aurélien Pupier <ap...@redhat.com>
---
 .../src/main/resources/kamelets/chuck-norris-source.kamelet.yaml        | 2 +-
 routeloader/src/main/resources/myroutes/my-yaml-route.yaml              | 2 +-
 routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml     | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml b/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
index aa60e294..e62299b7 100644
--- a/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
+++ b/kamelet-chucknorris/src/main/resources/kamelets/chuck-norris-source.kamelet.yaml
@@ -37,6 +37,6 @@ spec:
         period: "{{period}}"
       steps:
         - to: "https://api.chucknorris.io/jokes/random"
-        - set-body:
+        - setBody:
             jsonpath: "$.value"
         - to: "kamelet:sink"
diff --git a/routeloader/src/main/resources/myroutes/my-yaml-route.yaml b/routeloader/src/main/resources/myroutes/my-yaml-route.yaml
index e58e2fa6..0a6d9e5b 100644
--- a/routeloader/src/main/resources/myroutes/my-yaml-route.yaml
+++ b/routeloader/src/main/resources/myroutes/my-yaml-route.yaml
@@ -19,7 +19,7 @@
     from:
       uri: "timer:yaml?period=3s"
       steps:
-        - set-body:
+        - setBody:
             simple: "Timer fired ${header.CamelTimerCounter} times"
         - to:
             uri: "log:yaml"
diff --git a/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml b/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml
index 2d28a3a0..0377d216 100644
--- a/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml
+++ b/routes-configuration/src/main/resources/myroutes/my-yaml-route.yaml
@@ -21,7 +21,7 @@
     from:
       uri: "timer:yaml?period=3s"
       steps:
-        - set-body:
+        - setBody:
             simple: "Timer fired ${header.CamelTimerCounter} times"
         - to:
             uri: "log:yaml"