From 7cab32d279afef1aafc452d223ee25d88e055886 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Wed, 15 Mar 2023 20:30:08 -0500 Subject: [PATCH] chore(schema): Remove arrays support for instances --- schemas/config-schema.json | 42 +++++++++----------------------------- 1 file changed, 10 insertions(+), 32 deletions(-) diff --git a/schemas/config-schema.json b/schemas/config-schema.json index 96edd153..72310ada 100644 --- a/schemas/config-schema.json +++ b/schemas/config-schema.json @@ -5,42 +5,20 @@ "additionalProperties": false, "properties": { "sonarr": { - "oneOf": [ - { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/$defs/sonarr_instance" - } - }, - { - "type": "object", - "patternProperties": { - "^.*$": { - "$ref": "#/$defs/sonarr_instance" - } - } + "type": "object", + "patternProperties": { + "^.*$": { + "$ref": "#/$defs/sonarr_instance" } - ] + } }, "radarr": { - "oneOf": [ - { - "type": "array", - "minItems": 1, - "items": { - "$ref": "#/$defs/radarr_instance" - } - }, - { - "type": "object", - "patternProperties": { - "^.*$": { - "$ref": "#/$defs/radarr_instance" - } - } + "type": "object", + "patternProperties": { + "^.*$": { + "$ref": "#/$defs/radarr_instance" } - ] + } } }, "$defs": {