Update some JSON schemas to be more compliant to the spec (#2136)

This commit is contained in:
toasted-nutbread 2022-05-16 19:56:02 -04:00 committed by GitHub
parent 8b206e4d04
commit 84c9231a5e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 8 deletions

View File

@ -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,

View File

@ -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",

View File

@ -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",

View File

@ -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",

View File

@ -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,

View File

@ -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",

View File

@ -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"