summaryrefslogtreecommitdiff
path: root/data/schema-15924.json
blob: 21bc192e9915c29640ceee58d1e5d8d7cc10033e (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
26
27
28
29
30
31
32
33
34
35
36
{
  "$schema": "http://json-schema.org/draft-04/schema#",

  "title": "ISO 15924",
  "description": "Codes for the representation of names of scripts",
  "type": "object",

  "properties": {
	"15924": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "alpha_4": {
            "description": "Four letter alphabetic code of the script",
            "type": "string",
            "pattern": "^[A-Z][a-z]{3}$"
          },
          "name": {
            "description": "Name of the script",
            "type": "string",
            "minLength": 1
          },
          "numeric": {
            "description": "Three digit numeric code of the script, including leading zeros",
            "type": "string",
            "pattern": "^[0-9]{3}$"
          }
        },
        "required": ["alpha_4", "name", "numeric"],
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}