From a08ebcf8fc6a4be9f87dd8e6cb6303e346022478 Mon Sep 17 00:00:00 2001 From: Mathias Lesauvage Date: Sun, 17 Mar 2024 01:30:46 +0100 Subject: [PATCH] Added restriction on variant image --- .schema/controller.json | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.schema/controller.json b/.schema/controller.json index b1c17ca..d9990e9 100644 --- a/.schema/controller.json +++ b/.schema/controller.json @@ -542,10 +542,14 @@ "additionalProperties": false, "properties": { "name": { - "type": "string" + "type": "string", + "title": "Image" }, "image": { - "type": "string" + "type": "string", + "pattern": "(.*)\\.(p|P)(n|N)(g|G)", + "title": "Image", + "description": "Name of a PNG image showing the mentionned variant\nThe image must be placed in the same folder as this config file\nNote: At least one of the variants must use the default `image.png` file" } }, "required": [