Skip to content
This repository was archived by the owner on Feb 25, 2023. It is now read-only.

Commit 4abbc70

Browse files
Use "const" instead of "enum" with one value (#2259)
1 parent c93682f commit 4abbc70

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
},
3939
{
4040
"type": "string",
41-
"enum": ["freq"],
41+
"const": "freq",
4242
"description": "Type of data. \"freq\" corresponds to frequency information."
4343
},
4444
{

ext/data/schemas/dictionary-term-bank-v3-schema.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"properties": {
2828
"tag": {
2929
"type": "string",
30-
"enum": ["br"]
30+
"const": "br"
3131
},
3232
"data": {
3333
"$ref": "#/definitions/structuredContentData"
@@ -364,7 +364,7 @@
364364
"properties": {
365365
"type": {
366366
"type": "string",
367-
"enum": ["text"]
367+
"const": "text"
368368
},
369369
"text": {
370370
"type": "string",
@@ -381,7 +381,7 @@
381381
"properties": {
382382
"type": {
383383
"type": "string",
384-
"enum": ["structured-content"]
384+
"const": "structured-content"
385385
},
386386
"content": {
387387
"$ref": "#/definitions/structuredContent",
@@ -398,7 +398,7 @@
398398
"properties": {
399399
"type": {
400400
"type": "string",
401-
"enum": ["image"]
401+
"const": "image"
402402
},
403403
"path": {
404404
"type": "string",

ext/data/schemas/dictionary-term-meta-bank-v3-schema.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
{
5050
"items": [
5151
{},
52-
{"enum": ["freq"]},
52+
{"const": "freq"},
5353
{
5454
"oneOf": [
5555
{
@@ -81,7 +81,7 @@
8181
{
8282
"items": [
8383
{},
84-
{"enum": ["pitch"]},
84+
{"const": "pitch"},
8585
{
8686
"type": ["object"],
8787
"description": "Pitch accent information for the term.",

0 commit comments

Comments
 (0)