From 46fe1dbf6dfabb76112aebcdff39e486c82aeef3 Mon Sep 17 00:00:00 2001 From: psyko-gh Date: Mon, 26 Aug 2024 22:19:25 +0200 Subject: [PATCH 1/2] fix(schema): fix missing keyword predicate --- schema/schema.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/schema/schema.json b/schema/schema.json index f6bbc3b..fdfcee5 100644 --- a/schema/schema.json +++ b/schema/schema.json @@ -100,6 +100,7 @@ { "$ref": "#/definitions/agePredicate" }, { "$ref": "#/definitions/scorePredicate" }, { "$ref": "#/definitions/genrePredicate" }, + { "$ref": "#/definitions/keywordPredicate" }, { "$ref": "#/definitions/watchProviderPredicate" }, { "$ref": "#/definitions/voteCountPredicate" }, { "$ref": "#/definitions/castPredicate" }, @@ -198,6 +199,20 @@ } }, + "keywordPredicate": { + "$id": "#/definitions/keywordPredicate", + "type": "object", + "required": ["keyword"], + "properties": { + "keyword": { + "oneOf": [ + { "type": "string" }, + { "type": "array", "items": { "type": "string" }} + ] + } + } + }, + "watchProviderPredicate": { "$id": "#/definitions/watchProviderPredicate", "type": "object", From 57ce493c37adfba8428ddfd0006ad38cd5381c5e Mon Sep 17 00:00:00 2001 From: psyko-gh Date: Mon, 26 Aug 2024 22:22:30 +0200 Subject: [PATCH 2/2] docs: fix schema url --- docs/additional.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/additional.md b/docs/additional.md index 600a099..70f744a 100644 --- a/docs/additional.md +++ b/docs/additional.md @@ -1,5 +1,5 @@ # Schema -The JSON Schema is available here: https://github.com/psyko-gh/overcrawlrr/blob/master/schema/schema.json +The JSON Schema is available here: [https://raw.githubusercontent.com/psyko-gh/overcrawlrr/master/schema/schema.json](https://raw.githubusercontent.com/psyko-gh/overcrawlrr/master/schema/schema.json) This is particularly helpful if you are using and editor that support JSON Schema to help you validate your configuration.