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. 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",