davsclaus commented on code in PR #26397:
URL: https://github.com/apache/camel/pull/26397#discussion_r4003969662


##########
components/camel-keycloak/src/main/docs/keycloak-component.adoc:
##########
@@ -262,7 +263,9 @@ YAML::
 - onException:
     exception:
       - "org.apache.camel.CamelAuthorizationException"
-    handled: true
+    handled:
+      constant:
+        expression: "true"

Review Comment:
   The shorthand is what the runtime's own error message for `handled: true` 
recommends, and it is the form the other examples use:
   
   ```suggestion
       handled:
         constant: "true"
   ```



##########
components/camel-ai/camel-ai-resource/src/main/docs/ai-resource-component.adoc:
##########
@@ -101,9 +103,11 @@ YAML::
         description: "Current application configuration"
         mimeType: application/json
       steps:
-        - poll-enrich:
-            uri: "file:config?fileName=app.json&noop=true&idempotent=false"
+        - pollEnrich:
             timeout: 5000
+            expression:
+              constant:
+                expression: 
"file:config?fileName=app.json&noop=true&idempotent=false"

Review Comment:
   `pollEnrich` takes the language key directly, like the other expression 
nodes:
   
   ```suggestion
               constant: 
"file:config?fileName=app.json&noop=true&idempotent=false"
   ```



##########
components/camel-elasticsearch/src/main/docs/elasticsearch-component.adoc:
##########
@@ -388,7 +388,8 @@ YAML::
               scrollKeepAliveMs: 30000
         - split:
             expression:
-              body: {}
+              simple:
+                expression: "${body}"

Review Comment:
   ```suggestion
                 simple: "${body}"
   ```



##########
components/camel-jdbc/src/main/docs/jdbc-component.adoc:
##########
@@ -250,18 +250,19 @@ YAML::
 - route:
     from:
       uri: direct:hello
-    steps:
-      - to:
-          uri: jdbc:testdb
-          parameters:
-            outputType: StreamList
-      - split:
-          expression:
-            body: {}
-          streaming: true
-          steps:
-            - to:
-                uri: mock:result
+      steps:
+        - to:
+            uri: jdbc:testdb
+            parameters:
+              outputType: StreamList
+        - split:
+            expression:
+              simple:
+                expression: "${body}"

Review Comment:
   ```suggestion
                 simple: "${body}"
   ```



##########
components/camel-kafka/src/main/docs/kafka-component.adoc:
##########
@@ -970,13 +970,16 @@ YAML::
 +
 [source,yaml]
 ----
+- onException:
+    exception:
+      - java.lang.Exception
+    handled:
+      constant:
+        expression: "false"

Review Comment:
   Same shorthand here:
   
   ```suggestion
       handled:
         constant: "false"
   ```



##########
components/camel-aws/camel-aws2-s3-vectors/src/main/docs/aws2-s3-vectors-component.adoc:
##########
@@ -87,10 +87,7 @@ YAML::
             name: CamelAwsS3VectorsVectorId
             constant: doc-001
         - setBody:
-            constant:
-              - 0.1
-              - 0.2
-              - 0.3
+            groovy: "[0.1f, 0.2f, 0.3f]"

Review Comment:
   This now needs camel-groovy on the classpath, which the page does not say. A 
sentence above the example would help (the producer accepts any `List<Number>`, 
so `[0.1, 0.2, 0.3]` without the `f` suffix works as well).



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to