aboutsummaryrefslogtreecommitdiff
path: root/ext/bg/data/dictionary-term-meta-bank-v3-schema.json
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2020-04-18 14:14:30 -0400
committerGitHub <noreply@github.com>2020-04-18 14:14:30 -0400
commit9297eb45aef3bad50fe9cf5e453aa97288609601 (patch)
tree85c916841e1b4409f83b12376fafd5a31d5e6e4d /ext/bg/data/dictionary-term-meta-bank-v3-schema.json
parent106172e2c1261f2d685802280af580c70ac4580b (diff)
parentceb12ac41551aca11bc195e5fad9984a28a5e291 (diff)
Merge pull request #450 from toasted-nutbread/frequency-readings
Add support for filtering frequency metadata based on readings
Diffstat (limited to 'ext/bg/data/dictionary-term-meta-bank-v3-schema.json')
-rw-r--r--ext/bg/data/dictionary-term-meta-bank-v3-schema.json26
1 files changed, 24 insertions, 2 deletions
diff --git a/ext/bg/data/dictionary-term-meta-bank-v3-schema.json b/ext/bg/data/dictionary-term-meta-bank-v3-schema.json
index 8475db81..ffffb546 100644
--- a/ext/bg/data/dictionary-term-meta-bank-v3-schema.json
+++ b/ext/bg/data/dictionary-term-meta-bank-v3-schema.json
@@ -26,8 +26,30 @@
{},
{"enum": ["freq"]},
{
- "type": ["string", "number"],
- "description": "Frequency information for the term or expression."
+ "oneOf": [
+ {
+ "type": ["string", "number"],
+ "description": "Frequency information for the term or expression."
+ },
+ {
+ "type": ["object"],
+ "required": [
+ "reading",
+ "frequency"
+ ],
+ "additionalProperties": false,
+ "properties": {
+ "reading": {
+ "type": "string",
+ "description": "Reading for the term or expression."
+ },
+ "frequency": {
+ "type": ["string", "number"],
+ "description": "Frequency information for the term or expression."
+ }
+ }
+ }
+ ]
}
]
},