diff --git a/metadata.json b/metadata.json new file mode 100644 index 000000000..e874db777 --- /dev/null +++ b/metadata.json @@ -0,0 +1,11 @@ +{ + "$schema": "metadata.schema.json", + "json_paths": { + "radarr": { + "custom_formats": ["docs/json/radarr"] + }, + "sonarr": { + "release_profiles": ["docs/json/sonarr"] + } + } +} diff --git a/metadata.schema.json b/metadata.schema.json new file mode 100644 index 000000000..2f94ffbbc --- /dev/null +++ b/metadata.schema.json @@ -0,0 +1,41 @@ +{ + "$schema": "https://json-schema.org/draft/2020-12/schema", + "$id": "https://raw.githubusercontent.com/TRaSH-/Guides/master/metadata.schema.json", + "type": "object", + "additionalProperties": false, + "properties": { + "$schema": { "type": "string" }, + "json_paths": { + "type": "object", + "additionalProperties": false, + "properties": { + "radarr": "#/$defs/radarr", + "sonarr": "#/$defs/sonarr" + } + } + }, + "$defs": { + "release_profiles": { + "type": "array", + "items": { "type": "string" } + }, + "custom_formats": { + "type": "array", + "items": { "type": "string" } + }, + "radarr": { + "type": "object", + "additionalProperties": false, + "properties": { + "custom_formats": "#/$defs/custom_formats" + } + }, + "sonarr": { + "type": "object", + "additionalProperties": false, + "properties": { + "release_profiles": "#/$defs/release_profiles" + } + } + } +}