From 11a5a56ff83493067e3220b83e08335b991c0320 Mon Sep 17 00:00:00 2001 From: Robert Dailey Date: Sun, 19 Feb 2023 20:35:03 -0600 Subject: [PATCH] chore: Schema change for quality profiles --- schemas/config-schema.json | 30 +++++++++++++++++++++++++----- 1 file changed, 25 insertions(+), 5 deletions(-) diff --git a/schemas/config-schema.json b/schemas/config-schema.json index 7c8185e0..96edd153 100644 --- a/schemas/config-schema.json +++ b/schemas/config-schema.json @@ -97,11 +97,6 @@ "score": { "type": "integer", "description": "A positive or negative number representing the score to apply to *all* custom formats listed in the trash_ids list." - }, - "reset_unmatched_scores": { - "type": "boolean", - "description": "If set to true, enables setting scores to 0 in quality profiles where either a CF was not mentioned in the trash_ids array or it was in that list but did not get a score (e.g. no score in guide).", - "default": false } } } @@ -125,6 +120,25 @@ } } }, + "quality_profiles": { + "type": "array", + "minItems": 1, + "items": { + "type": "object", + "additionalProperties": false, + "required": ["name"], + "properties": { + "name": { + "type": "string" + }, + "reset_unmatched_scores": { + "type": "boolean", + "description": "If set to true, enables setting scores to 0 in quality profiles where either a CF was not mentioned in the trash_ids array or it was in that list but did not get a score (e.g. no score in guide).", + "default": false + } + } + } + }, "radarr_instance": { "type": "object", "additionalProperties": false, @@ -146,6 +160,9 @@ "quality_definition": { "$ref": "#/$defs/quality_definition" }, + "quality_profiles": { + "$ref": "#/$defs/quality_profiles" + }, "delete_old_custom_formats": { "$ref": "#/$defs/delete_old_custom_formats" }, @@ -178,6 +195,9 @@ "quality_definition": { "$ref": "#/$defs/quality_definition" }, + "quality_profiles": { + "$ref": "#/$defs/quality_profiles" + }, "delete_old_custom_formats": { "$ref": "#/$defs/delete_old_custom_formats" },