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


The following commit(s) were added to refs/heads/main by this push:
     new 666b2f9d Front page: the YAML tab of the Kafka to database route is 
written in the canonical route form (#1783)
666b2f9d is described below

commit 666b2f9d90ff9fc16d1965ef925c55d8647d3dab
Author: Claus Ibsen <[email protected]>
AuthorDate: Sun Sep 20 18:52:55 2026 +0200

    Front page: the YAML tab of the Kafka to database route is written in the 
canonical route form (#1783)
    
    The compact top-level from: is deprecated (camel run warns on it, 
CAMEL-24745), and the what-is-apache-camel page already shows the route form.
    
    
    Claude-Session: https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj
    
    Co-authored-by: Claude Fable 5.1 <[email protected]>
---
 data/home.yaml | 19 ++++++++++---------
 1 file changed, 10 insertions(+), 9 deletions(-)

diff --git a/data/home.yaml b/data/home.yaml
index 4f6904f2..102d2646 100644
--- a/data/home.yaml
+++ b/data/home.yaml
@@ -118,15 +118,16 @@ example:
       run: camel run kafka-to-db.yaml
       code: |
         # Route messages from Kafka into a database
-        - from:
-            uri: kafka:orders
-            steps:
-              - unmarshal:
-                  json: {}
-              - to:
-                  uri: >-
-                    sql:INSERT INTO orders (id, amount)
-                    VALUES (:#id, :#amount)
+        - route:
+            from:
+              uri: kafka:orders
+              steps:
+                - unmarshal:
+                    json: {}
+                - to:
+                    uri: >-
+                      sql:INSERT INTO orders (id, amount)
+                      VALUES (:#id, :#amount)
     - id: java
       label: Java
       run: camel run KafkaToDb.java

Reply via email to