aboutsummaryrefslogtreecommitdiff
path: root/ext/data
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-09-26 11:08:21 -0400
committerGitHub <noreply@github.com>2021-09-26 11:08:21 -0400
commitc15683d206c3bcfbaa1fa81f1c57836a34974e83 (patch)
treea409bf77fe6df6e4f5a217424ea4d687c7cfe958 /ext/data
parent9899727d7d53caed4c5b5e68176f7ed7f90a9438 (diff)
Ensure frequency values are always numbers (#1943)
Diffstat (limited to 'ext/data')
-rw-r--r--ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json2
-rw-r--r--ext/data/schemas/dictionary-term-meta-bank-v3-schema.json4
2 files changed, 3 insertions, 3 deletions
diff --git a/ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json b/ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json
index 62479026..49f7c813 100644
--- a/ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json
+++ b/ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json
@@ -17,7 +17,7 @@
"description": "Type of data. \"freq\" corresponds to frequency information."
},
{
- "type": ["string", "number"],
+ "type": ["number"],
"description": "Data for the character."
}
]
diff --git a/ext/data/schemas/dictionary-term-meta-bank-v3-schema.json b/ext/data/schemas/dictionary-term-meta-bank-v3-schema.json
index 8eb9d343..206e7152 100644
--- a/ext/data/schemas/dictionary-term-meta-bank-v3-schema.json
+++ b/ext/data/schemas/dictionary-term-meta-bank-v3-schema.json
@@ -28,7 +28,7 @@
{
"oneOf": [
{
- "type": ["string", "number"],
+ "type": ["number"],
"description": "Frequency information for the term."
},
{
@@ -44,7 +44,7 @@
"description": "Reading for the term."
},
"frequency": {
- "type": ["string", "number"],
+ "type": ["number"],
"description": "Frequency information for the term."
}
}