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


The following commit(s) were added to refs/heads/main by this push:
     new 2ccd14d  smart-log-analyzer: fix two route files for Camel 4.23 (#100)
2ccd14d is described below

commit 2ccd14d7f39dfde2b2214ddbb03b038f3dd6e27f
Author: Claus Ibsen <[email protected]>
AuthorDate: Thu Oct 8 07:26:03 2026 +0200

    smart-log-analyzer: fix two route files for Camel 4.23 (#100)
    
    - ui-console/rest-api.camel.yaml declared its REST verbs under steps:,
      which the 4.23 YAML DSL rejects ("rest: unsupported field: steps"); the
      verbs are now under get:, each calling its route.
    - correlator/infinispan.camel.yaml split a Simple filter over two lines
      with a YAML escape, which Simple failed to parse ("expected symbol
      doubleQuote but was eol"); it is now one line.
    
    Part of #98.
    
    
    Claude-Session: https://claude.ai/code/session_01STT6whBgK1AqsSsUKrnE8m
    
    Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>
---
 .../smart-log-analyzer/correlator/infinispan.camel.yaml  |  3 +--
 .../smart-log-analyzer/ui-console/rest-api.camel.yaml    | 16 ++++++++--------
 2 files changed, 9 insertions(+), 10 deletions(-)

diff --git a/showcase/smart-log-analyzer/correlator/infinispan.camel.yaml 
b/showcase/smart-log-analyzer/correlator/infinispan.camel.yaml
index c057864..5cede40 100644
--- a/showcase/smart-log-analyzer/correlator/infinispan.camel.yaml
+++ b/showcase/smart-log-analyzer/correlator/infinispan.camel.yaml
@@ -17,8 +17,7 @@
         - filter:
             expression:
               simple:
-                expression: "${variable.traceId} != null && 
${variable.traceId}\
-                  \ != ''"
+                expression: "${variable.traceId} != null && 
${variable.traceId} != ''"
             steps:
               - claimCheck:
                   operation: Set
diff --git a/showcase/smart-log-analyzer/ui-console/rest-api.camel.yaml 
b/showcase/smart-log-analyzer/ui-console/rest-api.camel.yaml
index 7902573..52777fd 100644
--- a/showcase/smart-log-analyzer/ui-console/rest-api.camel.yaml
+++ b/showcase/smart-log-analyzer/ui-console/rest-api.camel.yaml
@@ -1,13 +1,13 @@
 - rest:
     path: /api/traces
-    steps:
-      - get:
-          id: list-traces
-          produces: application/json
-      - get:
-          id: get-trace-by-id
-          path: "/{id}"
-          produces: application/json
+    get:
+      - id: list-traces
+        produces: application/json
+        to: direct:list-traces
+      - id: get-trace-by-id
+        path: "/{id}"
+        produces: application/json
+        to: direct:get-trace
 - route:
     id: route-list-traces
     from:

Reply via email to