Skip to content
This repository has been archived by the owner on Feb 25, 2023. It is now read-only.

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ext/data/schemas/dictionary-kanji-bank-v1-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion ext/data/schemas/dictionary-kanji-bank-v3-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
3 changes: 2 additions & 1 deletion ext/data/schemas/dictionary-tag-bank-v3-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion ext/data/schemas/dictionary-term-bank-v1-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
3 changes: 2 additions & 1 deletion ext/data/schemas/dictionary-term-bank-v3-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
5 changes: 3 additions & 2 deletions ext/data/schemas/dictionary-term-meta-bank-v3-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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"
Expand Down