From 6ceee2c24d903993a969b6c6460ec75ead3e84da Mon Sep 17 00:00:00 2001 From: linsui Date: Mon, 30 Oct 2023 18:47:33 +0800 Subject: [PATCH] schema: UpdateCheckMode HTTP requires AutoUpdateMode pattern and UpdateCheckData set --- schemas/metadata.json | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/schemas/metadata.json b/schemas/metadata.json index 2b50aa8d0e..3c82df0e17 100644 --- a/schemas/metadata.json +++ b/schemas/metadata.json @@ -727,6 +727,26 @@ } } }, + { + "if": { + "properties": { + "UpdateCheckMode": { + "const": "HTTP" + } + } + }, + "then": { + "properties": { + "AutoUpdateMode": { + "type": "string", + "pattern": "^(None|Version .+)$" + } + }, + "required": [ + "UpdateCheckData" + ] + } + }, { "if": { "properties": {