Update config.schema.json

Made the 'picker' field within 'tap_action' mandatory for a 'numeric' menu items.
This commit is contained in:
Philip Abbey
2025-10-30 17:03:21 +00:00
parent 4c946d584a
commit 0d3c76ef2e

View File

@@ -290,7 +290,8 @@
"required": [ "required": [
"name", "name",
"type", "type",
"entity" "entity",
"tap_action"
], ],
"additionalProperties": false "additionalProperties": false
}, },
@@ -778,7 +779,7 @@
"tap_action": { "tap_action": {
"type": "object", "type": "object",
"title": "Action", "title": "Action",
"description": "'confirm' field is optional.", "description": "'picker' field is required for 'numeric' menu type. 'confirm' and 'pin' fields are optional.",
"properties": { "properties": {
"picker": { "picker": {
"$ref": "#/$defs/picker" "$ref": "#/$defs/picker"
@@ -789,6 +790,18 @@
"pin": { "pin": {
"$ref": "#/$defs/pin" "$ref": "#/$defs/pin"
} }
},
"if": {
"properties": {
"type": {
"const": "numeric"
}
}
},
"then": {
"required": [
"picker"
]
} }
}, },
"picker": { "picker": {