Merge pull request #14 from psyko-gh/missing-keyword-in-schema

fix(schema): fix missing keyword predicate
This commit is contained in:
psyko-gh
2024-08-26 22:23:52 +02:00
committed by GitHub
2 changed files with 16 additions and 1 deletions

View File

@@ -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.

View File

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