From 84de71a9a64aeb9d3ff3f47d7d4f55e229a38120 Mon Sep 17 00:00:00 2001 From: Andrew Fiddian-Green Date: Wed, 4 Mar 2026 18:49:48 +0000 Subject: [PATCH] Schema update for configuration description (#5372) * add schema options for context Signed-off-by: Andrew Fiddian-Green --- .../schema/config-description-1.0.0.xsd | 52 ++++++++++++++- .../core/ConfigDescriptionParameter.java | 65 +++++++++---------- 2 files changed, 82 insertions(+), 35 deletions(-) diff --git a/bundles/org.openhab.core.config.core/schema/config-description-1.0.0.xsd b/bundles/org.openhab.core.config.core/schema/config-description-1.0.0.xsd index 40db9b3b9..d02e90723 100644 --- a/bundles/org.openhab.core.config.core/schema/config-description-1.0.0.xsd +++ b/bundles/org.openhab.core.config.core/schema/config-description-1.0.0.xsd @@ -37,7 +37,7 @@ - + @@ -68,7 +68,7 @@ - + @@ -162,4 +162,52 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/bundles/org.openhab.core.config.core/src/main/java/org/openhab/core/config/core/ConfigDescriptionParameter.java b/bundles/org.openhab.core.config.core/src/main/java/org/openhab/core/config/core/ConfigDescriptionParameter.java index 47977805f..29dcd6961 100644 --- a/bundles/org.openhab.core.config.core/src/main/java/org/openhab/core/config/core/ConfigDescriptionParameter.java +++ b/bundles/org.openhab.core.config.core/src/main/java/org/openhab/core/config/core/ConfigDescriptionParameter.java @@ -313,48 +313,47 @@ public class ConfigDescriptionParameter { * A context is a hint for user interfaces and input validators. *

*

- * Any string can be used, but the following have a special meaning: + * Any non empty string can be used, but the following have a special meaning, and will be suggested first by the IDE: *

* * * - * @return the context of the configuration parameter (could be empty) + * @return the context of the configuration parameter (could be null) */ public @Nullable String getContext() { return this.context;