diff --git a/docs/json/.editorconfig b/.editorconfig similarity index 94% rename from docs/json/.editorconfig rename to .editorconfig index e609a5f64..11bd79db4 100644 --- a/docs/json/.editorconfig +++ b/.editorconfig @@ -1,7 +1,7 @@ # EditorConfig is awesome: https://EditorConfig.org # top-most EditorConfig file -root = false +root = true [*.json] indent_style = space diff --git a/docs/json/radarr/dts-hd-ma.json b/docs/json/radarr/dts-hd-ma.json index b5a1ecc49..df8001b47 100644 --- a/docs/json/radarr/dts-hd-ma.json +++ b/docs/json/radarr/dts-hd-ma.json @@ -10,7 +10,7 @@ "negate": false, "required": true, "fields": { - "value": "dts[ .-]?(ma\\b|hd[ .-]?ma|hd)(?!china|r)" + "value": "dts[ .-]?(ma\\b|hd[ .-]?ma\\b|hd)(?!china|r|maniacs)" } }, { diff --git a/docs/json/radarr/dts.json b/docs/json/radarr/dts.json index 1f71c3a40..16c92dc0c 100644 --- a/docs/json/radarr/dts.json +++ b/docs/json/radarr/dts.json @@ -18,7 +18,7 @@ "negate": true, "required": true, "fields": { - "value": "dts[ .-]?(ma\\b|hd[ .-]?ma|hd)(?!china|r)" + "value": "dts[ .-]?(ma\\b|hd[ .-]?ma\\b|hd)(?!china|r|maniacs)" } }, { 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" + } + } + } +}