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

Commit

Permalink
Use "const" instead of "enum" with one value (#2259)
Browse files Browse the repository at this point in the history
  • Loading branch information
toasted-nutbread authored Oct 17, 2022
1 parent c93682f commit 4abbc70
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
},
{
"type": "string",
"enum": ["freq"],
"const": "freq",
"description": "Type of data. \"freq\" corresponds to frequency information."
},
{
Expand Down
8 changes: 4 additions & 4 deletions ext/data/schemas/dictionary-term-bank-v3-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
"properties": {
"tag": {
"type": "string",
"enum": ["br"]
"const": "br"
},
"data": {
"$ref": "#/definitions/structuredContentData"
Expand Down Expand Up @@ -364,7 +364,7 @@
"properties": {
"type": {
"type": "string",
"enum": ["text"]
"const": "text"
},
"text": {
"type": "string",
Expand All @@ -381,7 +381,7 @@
"properties": {
"type": {
"type": "string",
"enum": ["structured-content"]
"const": "structured-content"
},
"content": {
"$ref": "#/definitions/structuredContent",
Expand All @@ -398,7 +398,7 @@
"properties": {
"type": {
"type": "string",
"enum": ["image"]
"const": "image"
},
"path": {
"type": "string",
Expand Down
4 changes: 2 additions & 2 deletions ext/data/schemas/dictionary-term-meta-bank-v3-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{
"items": [
{},
{"enum": ["freq"]},
{"const": "freq"},
{
"oneOf": [
{
Expand Down Expand Up @@ -81,7 +81,7 @@
{
"items": [
{},
{"enum": ["pitch"]},
{"const": "pitch"},
{
"type": ["object"],
"description": "Pitch accent information for the term.",
Expand Down

0 comments on commit 4abbc70

Please sign in to comment.