From 22bafb760fbb8514154b9538c322827bc1e25b42 Mon Sep 17 00:00:00 2001 From: linsui Date: Thu, 2 Mar 2023 22:10:30 +0800 Subject: [PATCH] Schema: only require Repo, RepoType and SourceCode ... when there is no NoSourceSince --- schemas/metadata.json | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/schemas/metadata.json b/schemas/metadata.json index bdfea251a0..d8c4d9ac9b 100644 --- a/schemas/metadata.json +++ b/schemas/metadata.json @@ -661,11 +661,22 @@ "required": [ "Categories", "License", - "SourceCode", - "RepoType", - "Repo", "Builds" ], + "anyOf": [ + { + "required": [ + "Repo", + "RepoType", + "SourceCode" + ] + }, + { + "required": [ + "NoSourceSince" + ] + } + ], "additionalProperties": false, "definitions": { "anti_features": {