forked from FIWARE/data-models
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
111 lines (111 loc) · 2.89 KB
/
Copy pathschema.json
File metadata and controls
111 lines (111 loc) · 2.89 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
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
{
"$schema": "http://json-schema.org/schema#",
"$id": "https://fiware.github.io/data-models/specs/Alert/schema.json",
"title": "Alert data model JSON Schema",
"description": "An alert generated by a user or device in a given location",
"allOf": [
{
"$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/GSMA-Commons"
},
{
"$ref": "https://fiware.github.io/data-models/common-schema.json#/definitions/Location-Commons"
},
{
"$ref": "https://fiware.github.io/data-models/specs/Alert/alert-schema.json#/definitions/Common-Alert"
},
{
"type": "object",
"properties": {
"subCategory": {
"type": "string",
"anyOf": [
{
"enum": [
"trafficJam",
"carAccident",
"carWrongDirection",
"carStopped",
"pothole",
"roadClosed",
"roadWorks",
"hazardOnRoad",
"injuredBiker",
"flood",
"tsunami",
"coastalEvent",
"earthquake",
"rainfall",
"highTemperature",
"lowTemperature",
"heatWave",
"coldWave",
"ice",
"snow",
"wind",
"fog",
"tornado",
"tropicalCyclone",
"hurricane",
"snow/ice",
"thunderstorms",
"fireRisk",
"avalancheRisk",
"floodRisk",
"airPollution",
"waterPollution",
"pollenConcentration",
"asthmaAttack",
"bumpedPatient",
"fallenPatient",
"heartAttack",
"suspiciousAction",
"robbery",
"assault",
"civilDisorder",
"buildingFire",
"forestFire",
"noxiousWeed",
"snail",
"insect",
"rodent",
"bacteria",
"microbe",
"fungus",
"mite",
"virus",
"nematodes",
"irrigation",
"fertilisation"
]
},
{
"$ref": "https://fiware.github.io/data-models/specs/Weather/weather-schema.json#/definitions/WeatherAlertCategories"
}
]
}
}
}
],
"oneOf": [
{
"required": [
"id",
"type",
"location",
"alertSource",
"category",
"dateIssued"
]
},
{
"required": [
"id",
"type",
"address",
"alertSource",
"category",
"dateIssued"
]
}
]
}