chore(schema): Do not allow additional properties in object types

gui
Robert Dailey 2 years ago
parent 10dfb7e54e
commit 5a97883904

@ -55,6 +55,7 @@
}, },
"filter": { "filter": {
"type": "object", "type": "object",
"additionalProperties": false,
"description": "Defines various ways that release profile terms from the guide are synchronized with Sonarr.", "description": "Defines various ways that release profile terms from the guide are synchronized with Sonarr.",
"oneOf": [ "oneOf": [
{"required": ["include"]}, {"required": ["include"]},
@ -99,6 +100,8 @@
"description": "The API key from Radarr." "description": "The API key from Radarr."
}, },
"quality_definition": { "quality_definition": {
"type": "object",
"additionalProperties": false,
"required": ["type"], "required": ["type"],
"properties": { "properties": {
"type": { "type": {
@ -123,8 +126,8 @@
"minItems": 1, "minItems": 1,
"items": { "items": {
"type": "object", "type": "object",
"description": "A list of one or more sets of custom formats (by name and/or trash_id), each with an optional set of quality profiles names that identify which quality profiles to assign the scores for those custom formats to.",
"additionalProperties": false, "additionalProperties": false,
"description": "A list of one or more sets of custom formats (by name and/or trash_id), each with an optional set of quality profiles names that identify which quality profiles to assign the scores for those custom formats to.",
"anyOf": [ "anyOf": [
{"required": ["trash_ids"]}, {"required": ["trash_ids"]},
{"required": ["names"]} {"required": ["names"]}
@ -132,8 +135,8 @@
"properties": { "properties": {
"names": { "names": {
"type": "array", "type": "array",
"description": "A list of one or more custom format names to synchronize to Radarr. The names must be taken from the JSON itself in the guide.",
"uniqueItems": true, "uniqueItems": true,
"description": "A list of one or more custom format names to synchronize to Radarr. The names must be taken from the JSON itself in the guide.",
"minItems": 1, "minItems": 1,
"items": { "items": {
"type": "string" "type": "string"

Loading…
Cancel
Save