summaryrefslogtreecommitdiff
path: root/ext/data/schemas/dictionary-kanji-meta-bank-v3-schema.json
blob: 62479026b75578a65d8be350f1fa25c5a0ed49ed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
{
    "$schema": "http://json-schema.org/draft-07/schema#",
    "type": "array",
    "description": "Custom metadata for kanji characters.",
    "additionalItems": {
        "type": "array",
        "description": "Metadata about a single kanji character.",
        "minItems": 3,
        "items": [
            {
                "type": "string",
                "minLength": 1
            },
            {
                "type": "string",
                "enum": ["freq"],
                "description": "Type of data. \"freq\" corresponds to frequency information."
            },
            {
                "type": ["string", "number"],
                "description": "Data for the character."
            }
        ]
    }
}