From 0d3c76ef2e5f24b692f67f2284b76687a18cea72 Mon Sep 17 00:00:00 2001 From: Philip Abbey Date: Thu, 30 Oct 2025 17:03:21 +0000 Subject: [PATCH] Update config.schema.json Made the 'picker' field within 'tap_action' mandatory for a 'numeric' menu items. --- config.schema.json | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/config.schema.json b/config.schema.json index c639405..a696066 100644 --- a/config.schema.json +++ b/config.schema.json @@ -290,7 +290,8 @@ "required": [ "name", "type", - "entity" + "entity", + "tap_action" ], "additionalProperties": false }, @@ -778,7 +779,7 @@ "tap_action": { "type": "object", "title": "Action", - "description": "'confirm' field is optional.", + "description": "'picker' field is required for 'numeric' menu type. 'confirm' and 'pin' fields are optional.", "properties": { "picker": { "$ref": "#/$defs/picker" @@ -789,6 +790,18 @@ "pin": { "$ref": "#/$defs/pin" } + }, + "if": { + "properties": { + "type": { + "const": "numeric" + } + } + }, + "then": { + "required": [ + "picker" + ] } }, "picker": {