Update some JSON schemas to be more compliant to the spec (#2136)
This commit is contained in:
parent
8b206e4d04
commit
84c9231a5e
@ -2,7 +2,7 @@
|
|||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Data file containing kanji information.",
|
"description": "Data file containing kanji information.",
|
||||||
"additionalItems": {
|
"items": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Information about a single kanji character.",
|
"description": "Information about a single kanji character.",
|
||||||
"minItems": 4,
|
"minItems": 4,
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Data file containing kanji information.",
|
"description": "Data file containing kanji information.",
|
||||||
"additionalItems": {
|
"items": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Information about a single kanji character.",
|
"description": "Information about a single kanji character.",
|
||||||
"minItems": 6,
|
"minItems": 6,
|
||||||
|
"additionalItems": false,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -26,10 +26,11 @@
|
|||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Custom metadata for kanji characters.",
|
"description": "Custom metadata for kanji characters.",
|
||||||
"additionalItems": {
|
"items": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Metadata about a single kanji character.",
|
"description": "Metadata about a single kanji character.",
|
||||||
"minItems": 3,
|
"minItems": 3,
|
||||||
|
"additionalItems": false,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -2,10 +2,11 @@
|
|||||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Data file containing tag information for terms and kanji.",
|
"description": "Data file containing tag information for terms and kanji.",
|
||||||
"additionalItems": {
|
"items": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Information about a single tag.",
|
"description": "Information about a single tag.",
|
||||||
"minItems": 5,
|
"minItems": 5,
|
||||||
|
"additionalItems": false,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"$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 information.",
|
"description": "Data file containing term information.",
|
||||||
"additionalItems": {
|
"items": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Information about a single term.",
|
"description": "Information about a single term.",
|
||||||
"minItems": 5,
|
"minItems": 5,
|
||||||
|
@ -302,10 +302,11 @@
|
|||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Data file containing term information.",
|
"description": "Data file containing term information.",
|
||||||
"additionalItems": {
|
"items": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Information about a single term.",
|
"description": "Information about a single term.",
|
||||||
"minItems": 8,
|
"minItems": 8,
|
||||||
|
"additionalItems": false,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
|
@ -26,10 +26,11 @@
|
|||||||
},
|
},
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Custom metadata for terms.",
|
"description": "Custom metadata for terms.",
|
||||||
"additionalItems": {
|
"items": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "Metadata about a single term.",
|
"description": "Metadata about a single term.",
|
||||||
"minItems": 3,
|
"minItems": 3,
|
||||||
|
"additionalItems": false,
|
||||||
"items": [
|
"items": [
|
||||||
{
|
{
|
||||||
"type": "string",
|
"type": "string",
|
||||||
@ -97,7 +98,7 @@
|
|||||||
"pitches": {
|
"pitches": {
|
||||||
"type": "array",
|
"type": "array",
|
||||||
"description": "List of different pitch accent information for the term and reading combination.",
|
"description": "List of different pitch accent information for the term and reading combination.",
|
||||||
"additionalItems": {
|
"items": {
|
||||||
"type": "object",
|
"type": "object",
|
||||||
"required": [
|
"required": [
|
||||||
"position"
|
"position"
|
||||||
|
Loading…
Reference in New Issue
Block a user