diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2022-10-16 22:08:08 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-16 22:08:08 -0400 |
commit | 4abbc707a5919183aa8b5e2828fe12286d0f1ce7 (patch) | |
tree | 873ab1a316be90b79583cca3f354b2a012721ab1 | |
parent | c93682f677725eb4690818e98a0ea80bd211386e (diff) |
Use "const" instead of "enum" with one value (#2259)
3 files changed, 7 insertions, 7 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 98c023ff..e478de93 100644 --- a/ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json +++ b/ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json @@ -38,7 +38,7 @@ }, { "type": "string", - "enum": ["freq"], + "const": "freq", "description": "Type of data. \"freq\" corresponds to frequency information." }, { diff --git a/ext/data/schemas/dictionary-term-bank-v3-schema.json b/ext/data/schemas/dictionary-term-bank-v3-schema.json index a52c18e0..335144c7 100644 --- a/ext/data/schemas/dictionary-term-bank-v3-schema.json +++ b/ext/data/schemas/dictionary-term-bank-v3-schema.json @@ -27,7 +27,7 @@ "properties": { "tag": { "type": "string", - "enum": ["br"] + "const": "br" }, "data": { "$ref": "#/definitions/structuredContentData" @@ -364,7 +364,7 @@ "properties": { "type": { "type": "string", - "enum": ["text"] + "const": "text" }, "text": { "type": "string", @@ -381,7 +381,7 @@ "properties": { "type": { "type": "string", - "enum": ["structured-content"] + "const": "structured-content" }, "content": { "$ref": "#/definitions/structuredContent", @@ -398,7 +398,7 @@ "properties": { "type": { "type": "string", - "enum": ["image"] + "const": "image" }, "path": { "type": "string", 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 a8e06d0d..eb4d3fed 100644 --- a/ext/data/schemas/dictionary-term-meta-bank-v3-schema.json +++ b/ext/data/schemas/dictionary-term-meta-bank-v3-schema.json @@ -49,7 +49,7 @@ { "items": [ {}, - {"enum": ["freq"]}, + {"const": "freq"}, { "oneOf": [ { @@ -81,7 +81,7 @@ { "items": [ {}, - {"enum": ["pitch"]}, + {"const": "pitch"}, { "type": ["object"], "description": "Pitch accent information for the term.", |