This repository has been archived by the owner on Jun 4, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 20
/
LogSchema.json
119 lines (119 loc) · 4.2 KB
/
LogSchema.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
{
"definitions": {},
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "http://example.com/root.json",
"type": "object",
"title": "Flight Log schema for Digital Sky",
"description": "This is the flight log schema for digital sky flight logs. One file that follows this schema should be generated for every permission artefact",
"required": [
"signature",
"FlightLog"
],
"properties": {
"signature": {
"$id": "#/properties/signature",
"type": "string",
"title": "The Signature Schema",
"description": "Base64 encoded RSA2048 with SHA256 Signature of the FlightLog element. "
},
"FlightLog": {
"$id": "#/properties/FlightLog",
"type": "object",
"title": "The Flightlog Schema",
"description": "Contains all the flight log related information. ",
"required": [
"PermissionArtefact",
"previous_log_hash",
"LogEntries"
],
"properties": {
"PermissionArtefact": {
"$id": "#/properties/FlightLog/properties/PermissionArtefact",
"type": "string",
"title": "Permission Artefact ID",
"description": "The ID of the current permission artefact against which the log is being generated. "
},
"previous_log_hash": {
"$id": "#/properties/FlightLog/properties/previous_log_hash",
"type": "string",
"title": "The Previous Log hash",
"description": "This contains the base64 encoded hash of the most recent flight log that was generated",
"default": ""
},
"LogEntries": {
"$id": "#/properties/FlightLog/properties/LogEntries",
"type": "array",
"title": "The Logentries Schema",
"items": {
"$id": "#/properties/FlightLog/properties/LogEntries/items",
"type": "object",
"title": "Flight Log items",
"required": [
"Entry_type",
"TimeStamp",
"Longitude",
"Latitude",
"Altitude"
],
"properties": {
"Entry_type": {
"$id": "#/properties/FlightLog/properties/LogEntries/items/properties/Entry_type",
"type": "string",
"enum": [
"GEOFENCE_BREACH",
"TAKEOFF/ARM",
"TIME_BREACH",
"LAND/DISARM"
],
"title": "Flight Log entries",
"description": "Every entry in the flight log should be one of the four types"
},
"TimeStamp": {
"$id": "#/properties/FlightLog/properties/LogEntries/items/properties/TimeStamp",
"type": "integer",
"title": "Unix timestamp of the recorded entry",
"default": 0
},
"Longitude": {
"$id": "#/properties/FlightLog/properties/LogEntries/items/properties/Longitude",
"type": "number",
"title": "The Longitude in decimal Degrees",
"default": 0,
"examples": [
12.34567
]
},
"Latitude": {
"$id": "#/properties/FlightLog/properties/LogEntries/items/properties/Latitude",
"type": "number",
"title": "The Latitude in decimal degrees",
"default": 0.0,
"examples": [
12.34567
]
},
"Altitude": {
"$id": "#/properties/FlightLog/properties/LogEntries/items/properties/Altitude",
"type": "number",
"title": "The ellipsoidal height in m",
"default": 0,
"examples": [
100.1
]
},
"CRC": {
"$id": "#/properties/FlightLog/properties/LogEntries/items/properties/CRC",
"type": "integer",
"title": "The Crc Schema (Optional)",
"default": 0,
"examples": [
719
]
}
}
}
}
}
}
}
}