-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
62 lines (62 loc) · 1.96 KB
/
schema.json
File metadata and controls
62 lines (62 loc) · 1.96 KB
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
59
60
61
62
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://example.com/aerodrome-registry.schema.json",
"title": "Aerodrome Registry",
"description": "Schema for validating aerodrome registry data",
"type": "object",
"required": ["version", "last_updated", "total_count", "aerodromes"],
"properties": {
"version": {
"type": "string",
"pattern": "^\\d+\\.\\d+\\.\\d+$",
"description": "Semantic version of the registry format"
},
"last_updated": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp of last update"
},
"released_at": {
"type": "string",
"format": "date-time",
"description": "ISO 8601 timestamp of when this version was released to production"
},
"total_count": {
"type": "integer",
"minimum": 0,
"description": "Total number of aerodromes in the registry"
},
"aerodromes": {
"type": "array",
"items": {
"type": "object",
"required": ["icao", "name", "country", "timezone"],
"properties": {
"icao": {
"type": "string",
"pattern": "^[A-Z]{4}$",
"description": "4-letter ICAO code"
},
"name": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "Official aerodrome name"
},
"country": {
"type": "string",
"pattern": "^[A-Z]{2}$",
"description": "ISO 3166-1 alpha-2 country code (e.g., CH, US, GB)"
},
"timezone": {
"type": "string",
"pattern": "^[A-Za-z0-9_+-]+/[A-Za-z0-9_+-]+(/[A-Za-z0-9_+-]+)*$|^UTC([+-]\\d{1,2})?$",
"description": "IANA timezone identifier (e.g., America/New_York, America/Argentina/Salta, America/Port-au-Prince)"
}
},
"additionalProperties": false
}
}
},
"additionalProperties": false
}