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 2021/12/16 10:44:07 UTC

[camel] 03/03: CAMEL-17304: camel-yaml-dsl - from should not be inlined as it requires steps

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

commit e1a6d32042092dd70b0f6a1eb89ecc2a1e0bc687
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Thu Dec 16 11:43:21 2021 +0100

    CAMEL-17304: camel-yaml-dsl - from should not be inlined as it requires steps
---
 .../ROOT/pages/camel-3x-upgrade-guide-3_15.adoc    | 29 ++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_15.adoc b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_15.adoc
index 8bad4c5..6eccf35 100644
--- a/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_15.adoc
+++ b/docs/user-manual/modules/ROOT/pages/camel-3x-upgrade-guide-3_15.adoc
@@ -9,3 +9,32 @@ from both 3.0 to 3.1 and 3.1 to 3.2.
 === API changes
 
 Added `getScheme` method to `org.apache.camel.spi.Resource`.
+
+=== camel-yaml-dsl
+
+Removed `steps` from `route` because steps should only be configured on `from` making
+the DSL consistent and similar to Java DSL.
+
+Before it was possible to do:
+
+[source,yaml]
+----
+- route:
+    id: demo-route
+    from:
+      uri: "timer:info"
+    steps:
+      - log: "message"
+----
+
+This should correctly be done with `steps` as child of `from`:
+
+[source,yaml]
+----
+- route:
+    id: demo-route
+    from:
+      uri: "timer:info"
+      steps:
+        - log: "message"
+----