summaryrefslogtreecommitdiff
path: root/data/schema-4217.json
blob: f8f6cec9389be982c807851a53e1f157bd88a4c0 (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 4217",
  "description": "ISO 4217 language family and groups codes",
  "type": "object",

  "properties": {
	"4217": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "alpha_3": {
            "description": "Three letter code of the currency",
            "type": "string",
            "pattern": "^[A-Z]{3}$"
          },
          "name": {
            "description": "Name of currency",
            "type": "string",
            "minLength": 1
          },
          "numeric": {
            "description": "Three digit numeric code of the item, including leading zeros",
            "type": "string",
            "pattern": "^[0-9]{3}$"
          }
        },
        "required": ["alpha_3", "name", "numeric"],
        "additionalProperties": false
      }
    }
  },
  "additionalProperties": false
}