From cd3432f4f8e05d39c9b6a86bdd8c481c21a95fc4 Mon Sep 17 00:00:00 2001 From: bullmoose20 Date: Fri, 19 Jan 2024 11:39:05 -0500 Subject: [PATCH] Update config-schema.json to fix ignore_ids and ignore_imdb_ids validation --- json-schema/config-schema.json | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/json-schema/config-schema.json b/json-schema/config-schema.json index c3c831f4..43bdf081 100644 --- a/json-schema/config-schema.json +++ b/json-schema/config-schema.json @@ -751,25 +751,43 @@ }, "ignore_ids": { "description": "List of TMDb/TVDb IDs to ignore. Set a null, a single TMDb/TVDb ID, or a comma-separated string of TMDb/TVDb IDs to ignore in all collections.", - "oneOf": [ + "anyOf": [ { "type": "null" }, + { + "type": "array", + "items": { + "type": "integer" + }, + "minItems": 1 + }, { "type": "string", "pattern": "^(\\d+)(,(\\d+))*$" + }, + { + "type": "integer" } ] }, "ignore_imdb_ids": { "description": "List of IMDb IDs to ignore. Set a null, a single IMDb ID, or a comma-separated string of IMDb IDs to ignore in all collections.", - "oneOf": [ + "anyOf": [ { "type": "null" }, { "type": "string", "pattern": "^(tt\\d{7})(,(tt\\d{7}))*$" + }, + { + "type": "array", + "items": { + "type": "string", + "pattern": "^tt\\d{7}$" + }, + "minItems": 1 } ] },