davsclaus commented on code in PR #26398:
URL: https://github.com/apache/camel/pull/26398#discussion_r4003972516
##########
dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/SimpleChecks.java:
##########
@@ -114,7 +115,7 @@ else if (key.startsWith("message:") &&
!key.equals("message:")) {
: catalog.validateLanguageExpression(null, "simple",
simpleText);
if (!result.isSuccess()) {
String error = result.getShortError() != null ?
result.getShortError() : result.getError();
- if (error != null) {
+ if (error != null && !isMissingDependency(error)) {
Review Comment:
Agreed on dropping rather than reporting: the check runs on its own
classpath, not the project's, so it cannot tell a missing dependency from one
the project has. If a warning level is wanted later for `camel validate yaml`,
that is a separate change.
--
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]