forked from gockelhahn/qual-o-mat-data
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathelection.schema.json
34 lines (34 loc) · 881 Bytes
/
election.schema.json
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "Election list",
"description": "All available elections",
"type": "array",
"items": {
"description": "Election",
"type": "object",
"properties": {
"id": {
"description": "Unique identifier",
"type": "integer",
"minimum": 0
},
"name": {
"description": "Election name",
"type": "string"
},
"date": {
"description": "Date the election held place on",
"type": "string",
"format": "date"
},
"path": {
"description": "The path to the data directory of an election",
"type": "string",
"pattern": "^data/[0-9]{4}/[a-z]*$",
"$comment": "Current path: data/[YEAR]/location"
}
},
"required": ["id", "name", "date", "path"]
},
"uniqueItems": true
}