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#",
"type": "array",
"description": "Data file containing kanji information.",
"additionalItems": {
"items": {
"type": "array",
"description": "Information about a single kanji character.",
"minItems": 4,

View File

@ -2,10 +2,11 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"description": "Data file containing kanji information.",
"additionalItems": {
"items": {
"type": "array",
"description": "Information about a single kanji character.",
"minItems": 6,
"additionalItems": false,
"items": [
{
"type": "string",

View File

@ -26,10 +26,11 @@
},
"type": "array",
"description": "Custom metadata for kanji characters.",
"additionalItems": {
"items": {
"type": "array",
"description": "Metadata about a single kanji character.",
"minItems": 3,
"additionalItems": false,
"items": [
{
"type": "string",

View File

@ -2,10 +2,11 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"description": "Data file containing tag information for terms and kanji.",
"additionalItems": {
"items": {
"type": "array",
"description": "Information about a single tag.",
"minItems": 5,
"additionalItems": false,
"items": [
{
"type": "string",

View File

@ -2,7 +2,7 @@
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "array",
"description": "Data file containing term information.",
"additionalItems": {
"items": {
"type": "array",
"description": "Information about a single term.",
"minItems": 5,

View File

@ -302,10 +302,11 @@
},
"type": "array",
"description": "Data file containing term information.",
"additionalItems": {
"items": {
"type": "array",
"description": "Information about a single term.",
"minItems": 8,
"additionalItems": false,
"items": [
{
"type": "string",

View File

@ -26,10 +26,11 @@
},
"type": "array",
"description": "Custom metadata for terms.",
"additionalItems": {
"items": {
"type": "array",
"description": "Metadata about a single term.",
"minItems": 3,
"additionalItems": false,
"items": [
{
"type": "string",
@ -97,7 +98,7 @@
"pitches": {
"type": "array",
"description": "List of different pitch accent information for the term and reading combination.",
"additionalItems": {
"items": {
"type": "object",
"required": [
"position"