forked from vacs-project/vacs-data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpositions.schema.json
More file actions
67 lines (67 loc) · 1.97 KB
/
positions.schema.json
File metadata and controls
67 lines (67 loc) · 1.97 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
63
64
65
66
67
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://raw.githubusercontent.com/MorpheusXAUT/vacs-data/refs/heads/main/docs/schemas/positions.schema.json",
"title": "vacs dataset - position configuration",
"type": "object",
"additionalProperties": false,
"required": ["positions"],
"properties": {
"positions": {
"type": "array",
"items": { "$ref": "#/$defs/Position" },
"minItems": 1
}
},
"$defs": {
"PositionId": {
"type": "string",
"minLength": 1,
"description": "Position identifier. Should match a VATSIM position as defined in your sectorfile. Must start with your FIR's two-letter country code and be globally unique, e.g. LOWW_APP, LOWW_CTR"
},
"ProfileId": {
"type": "string",
"minLength": 1,
"description": "Profile identifier, used to reference profile in positions configuration. Must start with your FIR's two-letter country code and be globally unique, e.g. LOVV, LOWW."
},
"FacilityType": {
"type": "string",
"enum": [
"RMP",
"DEL",
"GND",
"TWR",
"APP",
"DEP",
"CTR",
"FSS",
"RDO",
"FMP"
],
"description": "VATSIM facility type code."
},
"Position": {
"type": "object",
"additionalProperties": false,
"required": ["id", "prefixes", "frequency", "facility_type"],
"properties": {
"id": { "$ref": "#/$defs/PositionId" },
"prefixes": {
"type": "array",
"minItems": 1,
"items": {
"type": "string",
"minLength": 1
},
"uniqueItems": true
},
"frequency": {
"type": "string",
"pattern": "^\\d{3}\\.\\d{3}$",
"description": "Frequency in XXX.XXX format (e.g. 119.400)."
},
"facility_type": { "$ref": "#/$defs/FacilityType" },
"profile_id": { "$ref": "#/$defs/ProfileId" }
}
}
}
}