Update schema descriptions to be less redundant (#1721)
This commit is contained in:
parent
5bf82a5b81
commit
6da81d59c3
@ -18,7 +18,7 @@
|
|||||||
"sequenced": {
|
"sequenced": {
|
||||||
"type": "boolean",
|
"type": "boolean",
|
||||||
"default": false,
|
"default": false,
|
||||||
"description": "Whether or not this dictionary can be used as the primary dictionary. Primary dictionaries typically contain term/expression definitions."
|
"description": "Whether or not this dictionary contains sequencing information for related terms."
|
||||||
},
|
},
|
||||||
"format": {
|
"format": {
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
|
@ -1,19 +1,19 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Data file containing term and expression information.",
|
"description": "Data file containing term information.",
|
||||||
"additionalItems": {
|
"additionalItems": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Information about a single term/expression.",
|
"description": "Information about a single term.",
|
||||||
"minItems": 5,
|
"minItems": 5,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Term or expression."
|
"description": "The text for the term."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Reading of the term/expression, or an empty string if the reading is the same as the term/expression."
|
"description": "Reading of the term, or an empty string if the reading is the same as the term."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": ["string", "null"],
|
"type": ["string", "null"],
|
||||||
@ -30,7 +30,7 @@
|
|||||||
],
|
],
|
||||||
"additionalItems": {
|
"additionalItems": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Single definition for the term/expression."
|
"description": "Single definition for the term."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
@ -98,19 +98,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Data file containing term and expression information.",
|
"description": "Data file containing term information.",
|
||||||
"additionalItems": {
|
"additionalItems": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Information about a single term/expression.",
|
"description": "Information about a single term.",
|
||||||
"minItems": 8,
|
"minItems": 8,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Term or expression."
|
"description": "The text for the term."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Reading of the term/expression, or an empty string if the reading is the same as the term/expression."
|
"description": "Reading of the term, or an empty string if the reading is the same as the term."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": ["string", "null"],
|
"type": ["string", "null"],
|
||||||
@ -126,16 +126,16 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Array of definitions for the term/expression.",
|
"description": "Array of definitions for the term.",
|
||||||
"items": {
|
"items": {
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Single definition for the term/expression."
|
"description": "Single definition for the term."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"description": "Single detailed definition for the term/expression.",
|
"description": "Single detailed definition for the term.",
|
||||||
"required": [
|
"required": [
|
||||||
"type"
|
"type"
|
||||||
],
|
],
|
||||||
@ -160,7 +160,7 @@
|
|||||||
},
|
},
|
||||||
"text": {
|
"text": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Single definition for the term/expression."
|
"description": "Single definition for the term."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -177,7 +177,7 @@
|
|||||||
},
|
},
|
||||||
"content": {
|
"content": {
|
||||||
"$ref": "#/definitions/structuredContent",
|
"$ref": "#/definitions/structuredContent",
|
||||||
"description": "Single definition for the term/expression using a structured content object."
|
"description": "Single definition for the term using a structured content object."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -238,11 +238,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "integer",
|
"type": "integer",
|
||||||
"description": "Sequence number for the term/expression. Terms/expressions with the same sequence number can be shown together when the \"resultOutputMode\" option is set to \"merge\"."
|
"description": "Sequence number for the term. Terms with the same sequence number can be shown together when the \"resultOutputMode\" option is set to \"merge\"."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "String of space-separated tags for the term/expression. An empty string is treated as no tags."
|
"description": "String of space-separated tags for the term. An empty string is treated as no tags."
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Custom metadata for terms/expressions.",
|
"description": "Custom metadata for terms.",
|
||||||
"additionalItems": {
|
"additionalItems": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Metadata about a single term/expression.",
|
"description": "Metadata about a single term.",
|
||||||
"minItems": 3,
|
"minItems": 3,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Term or expression."
|
"description": "The text for the term."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -17,7 +17,7 @@
|
|||||||
"description": "Type of data. \"freq\" corresponds to frequency information; \"pitch\" corresponds to pitch information."
|
"description": "Type of data. \"freq\" corresponds to frequency information; \"pitch\" corresponds to pitch information."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"description": "Data for the term/expression."
|
"description": "Data for the term."
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
@ -29,7 +29,7 @@
|
|||||||
"oneOf": [
|
"oneOf": [
|
||||||
{
|
{
|
||||||
"type": ["string", "number"],
|
"type": ["string", "number"],
|
||||||
"description": "Frequency information for the term or expression."
|
"description": "Frequency information for the term."
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": ["object"],
|
"type": ["object"],
|
||||||
@ -41,11 +41,11 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"reading": {
|
"reading": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Reading for the term or expression."
|
"description": "Reading for the term."
|
||||||
},
|
},
|
||||||
"frequency": {
|
"frequency": {
|
||||||
"type": ["string", "number"],
|
"type": ["string", "number"],
|
||||||
"description": "Frequency information for the term or expression."
|
"description": "Frequency information for the term."
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -59,7 +59,7 @@
|
|||||||
{"enum": ["pitch"]},
|
{"enum": ["pitch"]},
|
||||||
{
|
{
|
||||||
"type": ["object"],
|
"type": ["object"],
|
||||||
"description": "Pitch accent information for the term or expression.",
|
"description": "Pitch accent information for the term.",
|
||||||
"required": [
|
"required": [
|
||||||
"reading",
|
"reading",
|
||||||
"pitches"
|
"pitches"
|
||||||
@ -68,7 +68,7 @@
|
|||||||
"properties": {
|
"properties": {
|
||||||
"reading": {
|
"reading": {
|
||||||
"type": "string",
|
"type": "string",
|
||||||
"description": "Reading for the term or expression."
|
"description": "Reading for the term."
|
||||||
},
|
},
|
||||||
"pitches": {
|
"pitches": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
|
Loading…
Reference in New Issue
Block a user