Details
Description
When we get some details in the model we can find out if its a predicate or expression and use that in the validator to validate that correctly.
Now it can fail with
[INFO] --- camel-maven-plugin:2.19.0-SNAPSHOT:validate (default-cli) @ camel-example-spring-boot ---
[INFO] Using Camel version: 2.19.0-SNAPSHOT
[INFO] Endpoint validation success: (3 = passed, 0 = invalid, 0 = incapable, 0 = unknown components)
[WARNING] Simple validation error at: org.apache.camel.example.spring.boot.MySpringBootRouter.configure(MySpringBootRouter.java:34)
Unexpected token ! at location 8
${body} !> 50
*
[WARNING] Simple validation error: (0 = passed, 1 = invalid)
In a route with
from("timer:trigger") .filter().simple("${body} !> 50") .to("log:out");