davsclaus opened a new pull request, #26717:
URL: https://github.com/apache/camel/pull/26717

   Fixes https://issues.apache.org/jira/browse/CAMEL-24883
   
   The Simple checks of the camel-jbang validator (top-level ternary, a 
placeholder as a logical operand, and the other Simple rows) read the 
expression from the inline forms only. Written as a block scalar the expression 
was skipped:
   
   ```yaml
   - setBody:
       expression:
         simple: |
           ${exchangeProperty.CamelTimerCounter} == 0 ? 
'resource:file:order.json' : 'resource:file:order-bad-email.json'
   ```
   
   In the camel-jbang-mcp stepwise benchmark the same top-level ternary was 
refused with the right hint when written inline and accepted as a block scalar; 
the route then failed at runtime and the model gave up on Simple and rewrote 
the step in Groovy (CAMEL-24882).
   
   `YamlLines.blockScalar` reads the lines indented under a `|`, `|-`, `|+`, 
`>`, `>-` or `>+` indicator, removes their common indentation and joins them 
(newlines for `|`, spaces for `>`); `SimpleChecks` uses it for `simple: |`, 
`expression: |` under a simple key and `message: |` of a log step, reporting 
the key's line as the inline form does. Test in `SourceValidatorSimpleTest`; 
the 236 ai tests and every documentation example pass.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   
   https://claude.ai/code/session_01Bp3538HRBPMQkb5ta9xRaj


-- 
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