-
Notifications
You must be signed in to change notification settings - Fork 12
/
config.schema.json
58 lines (58 loc) · 1.5 KB
/
config.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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
"$id": "https://map.railfans.ca/config.schema.json",
"title": "Railmap Configuration",
"description": "Map configuration for the RailFans Canada map",
"type": "object",
"properties": {
"agencies": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"name": { "type": "string" },
"bbox": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": { "type": "number" }
},
"data": {
"type": "array",
"items": { "type": "string" }
}
},
"required": ["id", "bbox", "data", "name"],
"additionalProperties": false
}
},
"regions": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": { "type": "string" },
"agencies": { "type": "array", "items": { "type": "string" } },
"location": {
"type": "array",
"minItems": 2,
"maxItems": 2,
"items": { "type": "number" }
},
"title": {
"type": "string"
},
"bbox": {
"type": "array",
"minItems": 4,
"maxItems": 4,
"items": { "type": "number" }
},
"tier": { "type": "number" }
},
"required": ["id", "agencies", "location", "title", "bbox"],
"additionalProperties": false
}
}
}
}