-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathData.json
90 lines (90 loc) · 2.79 KB
/
Data.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
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"allOf": [
{
"type": "object",
"properties": {
"__type": { "$ref": "../NamespacedId.json" }
},
"required": [ "__type" ]
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.geolocation" } } },
"then": { "$ref": "Geolocation.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.stepcount" } } },
"then": { "$ref": "StepCount.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.ecg" } } },
"then": { "$ref": "ECG.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.ppg" } } },
"then": { "$ref": "PPG.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.heartrate" } } },
"then": { "$ref": "HeartRate.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.interbeatinterval" } } },
"then": { "$ref": "InterbeatInterval.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.sensorskincontact" } } },
"then": { "$ref": "SensorSkinContact.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.nongravitationalacceleration" } } },
"then": { "$ref": "NonGravitationalAcceleration.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.eda" } } },
"then": { "$ref": "EDA.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.acceleration" } } },
"then": { "$ref": "Acceleration.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.angularvelocity" } } },
"then": { "$ref": "AngularVelocity.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.signalstrength" } } },
"then": { "$ref": "SignalStrength.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.triggeredtask" } } },
"then": { "$ref": "TriggeredTask.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.completedtask" } } },
"then": { "$ref": "CompletedTask.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.input.custom" } } },
"then": { "$ref": "input/CustomInput.json" }
},
{
"if": { "properties": { "__type": { "const": "dk.cachet.carp.input.sex" } } },
"then": { "$ref": "input/Sex.json" }
}
],
"$defs": {
"SensorData": {
"$anchor": "SensorData",
"type": "object",
"properties": {
"sensorSpecificData": {
"oneOf": [
{ "$ref": "Data.json" },
{ "type": "null" }
]
}
}
}
}
}