aboutsummaryrefslogtreecommitdiff
path: root/ext/data/schemas
diff options
context:
space:
mode:
Diffstat (limited to 'ext/data/schemas')
-rw-r--r--ext/data/schemas/options-schema.json55
1 files changed, 34 insertions, 21 deletions
diff --git a/ext/data/schemas/options-schema.json b/ext/data/schemas/options-schema.json
index 9afad1e3..4b97342c 100644
--- a/ext/data/schemas/options-schema.json
+++ b/ext/data/schemas/options-schema.json
@@ -343,8 +343,6 @@
"enabled",
"volume",
"autoPlay",
- "customSourceUrl",
- "textToSpeechVoice",
"sources"
],
"properties": {
@@ -362,31 +360,46 @@
"type": "boolean",
"default": false
},
- "customSourceUrl": {
- "type": "string",
- "default": ""
- },
- "textToSpeechVoice": {
- "type": "string",
- "default": ""
- },
"sources": {
"type": "array",
"items": {
- "type": "string",
- "enum": [
- "jpod101",
- "jpod101-alternate",
- "jisho",
- "text-to-speech",
- "text-to-speech-reading",
- "custom",
- "custom-json"
+ "type": "object",
+ "additionalProperties": false,
+ "required": [
+ "type",
+ "url",
+ "voice"
],
- "default": "jpod101"
+ "properties": {
+ "type": {
+ "type": "string",
+ "enum": [
+ "jpod101",
+ "jpod101-alternate",
+ "jisho",
+ "text-to-speech",
+ "text-to-speech-reading",
+ "custom",
+ "custom-json"
+ ],
+ "default": "jpod101"
+ },
+ "url": {
+ "type": "string",
+ "default": ""
+ },
+ "voice": {
+ "type": "string",
+ "default": ""
+ }
+ }
},
"default": [
- "jpod101"
+ {
+ "type": "jpod101",
+ "url": "",
+ "voice": ""
+ }
]
}
}