forked from FIWARE/data-models
-
Notifications
You must be signed in to change notification settings - Fork 0
/
schema.json
70 lines (70 loc) · 1.94 KB
/
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
59
60
61
62
63
64
65
66
67
68
69
70
{
"$schema": "http://json-schema.org/schema#",
"id": "https://fiware.github.io/dataModels/specs/Weather/WeatherObserved/schema.json",
"title": "GSMA / FIWARE - Weather Observed schema",
"description": "An observation of weather conditions at a certain place and time. This data model has been developed in cooperation with mobile operators and the GSMA.",
"type": "object",
"allOf": [
{ "$ref": "https://fiware.github.io/dataModels/common-schema.json#/definitions/GSMA-Commons" },
{ "$ref": "https://fiware.github.io/dataModels/common-schema.json#/definitions/Location-Commons" },
{ "$ref": "https://fiware.github.io/dataModels/specs/Weather/weather-schema.json#/definitions/Weather-Commons" },
{
"properties": {
"type": {
"type": "string",
"enum": [
"WeatherObserved"
],
"description": "NGSI Entity type"
},
"dateObserved": {
"type": "string",
"format": "date-time"
},
"precipitation": {
"type": "number",
"minimum": 0
},
"atmosphericPressure": {
"type": "number",
"minimum": 0
},
"solarRadiation": {
"type": "number",
"minimum": 0
},
"illuminance": {
"type": "number",
"minimum": 0
},
"pressureTendency": {
"oneOf": [
{
"type": "string",
"enum": [
"raising",
"falling",
"steady"
]
},
{
"type": "number"
}
]
},
"dewPoint": {
"type": "number"
},
"refDevice": {
"$ref": "https://fiware.github.io/dataModels/common-schema.json#/definitions/EntityIdentifierType"
}
}
}
],
"required": [
"id",
"type",
"dateObserved",
"location"
]
}