From 9ec63b4d91d64e3773a2d250970e69622451ff64 Mon Sep 17 00:00:00 2001 From: Andreas Linde Date: Sat, 8 Oct 2022 13:48:29 +0200 Subject: [PATCH] Template schema updates Some changes where not reflected in the schema --- templates/definition/devices-schema.json | 31 +++++++++--------------- 1 file changed, 12 insertions(+), 19 deletions(-) diff --git a/templates/definition/devices-schema.json b/templates/definition/devices-schema.json index 4960463c4..2d6f47c72 100644 --- a/templates/definition/devices-schema.json +++ b/templates/definition/devices-schema.json @@ -10,6 +10,12 @@ "template": { "$": "#/definitions/Template" }, + "covers": { + "type": "array", + "items": { + "type": "string" + } + }, "products": { "type": "array", "items": { @@ -19,8 +25,11 @@ "group": { "$ref": "#/definitions/Groups" }, - "guidedsetup": { - "$ref": "#/definitions/GuidedSetup" + "linked": { + "type": "array", + "items": { + "$ref": "#/definitions/Linked" + } }, "capabilities": { "type": "array", @@ -58,7 +67,7 @@ }, "required": ["name"], "title": "Template" - }, + }, "Product": { "type": "object", "additionalProperties": false, @@ -80,22 +89,6 @@ "type": "string", "enum": ["generic", "switchsockets", "scooter", "sockets"] }, - "GuidedSetup": { - "type": "object", - "additionalProperties": false, - "properties": { - "enable": { - "type": "boolean" - }, - "linked": { - "type": "array", - "items": { - "$ref": "#/definitions/Linked" - } - } - }, - "required": ["enable"] - }, "Linked": { "type": "object", "additionalProperties": false,