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.git
commit a603090eea7b7ce6a359139de130b8d2d7d703f6 Author: Claus Ibsen <[email protected]> AuthorDate: Tue Sep 29 09:09:44 2026 +0200 camel-jbang - Fix SourceValidatorPropertiesTest: drop the catalog suggestion when the validator has its own hint Since CAMEL-25118 the catalog suggests main options by their full key, so camel.main.loggingLevel now gets "Did you mean: [camel.debug.loggingLevel]" next to the validator's hint to use logging.level.root. Keep only the hint. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Signed-off-by: Claus Ibsen <[email protected]> --- .../apache/camel/dsl/jbang/core/commands/ai/PropertiesChecks.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/PropertiesChecks.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/PropertiesChecks.java index 52bf04e7f05f..d580618cfae4 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/PropertiesChecks.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/ai/PropertiesChecks.java @@ -141,6 +141,11 @@ final class PropertiesChecks { if (msg != null) { msg = msg.trim(); String hint = mainOptionHint(line, catalog); + if (hint != null) { + // the hint says what to write; the catalog's edit-distance suggestion over the full keys + // can point elsewhere (camel.main.loggingLevel -> camel.debug.loggingLevel) + msg = msg.replaceFirst("\\. Did you mean: \\[[^]]*]", ""); + } if (hint == null && km.reset().find() && "component".equals(km.group(1))) { hint = endpointOptionHint(km.group(2), line, catalog); }
