Use "const" instead of "enum" with one value (#2259)
This commit is contained in:
parent
c93682f677
commit
4abbc707a5
@ -38,7 +38,7 @@
|
||||
},
|
||||
{
|
||||
"type": "string",
|
||||
"enum": ["freq"],
|
||||
"const": "freq",
|
||||
"description": "Type of data. \"freq\" corresponds to frequency information."
|
||||
},
|
||||
{
|
||||
|
@ -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",
|
||||
|
@ -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.",
|
||||
|
Loading…
Reference in New Issue
Block a user