rsmp_schemer 0.3.2 → 0.4.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +23 -22
- data/lib/rsmp_schemer/version.rb +3 -3
- data/rsmp_schemer.gemspec +3 -3
- data/schemas/core_3.1.2/schema/core/alarm.json +8 -4
- data/schemas/core_3.1.2/spec/core/alarm_spec.rb +15 -0
- data/schemas/core_3.1.3/Gemfile.lock +20 -20
- data/schemas/core_3.1.3/schema/core/alarm.json +8 -4
- data/schemas/core_3.1.3/schema/core/core.json +0 -1
- data/schemas/core_3.1.3/schema/core/rsmp.json +0 -9
- data/schemas/core_3.1.3/spec/core/alarm_spec.rb +20 -7
- data/schemas/core_3.1.3/spec/core/command_request_spec.rb +3 -6
- data/schemas/core_3.1.3/spec/core/command_response_spec.rb +1 -43
- data/schemas/core_3.1.3/spec/core/status_request_spec.rb +4 -8
- data/schemas/core_3.1.3/spec/core/status_response_spec.rb +13 -8
- data/schemas/core_3.1.3/spec/core/status_subscribe_spec.rb +4 -8
- data/schemas/core_3.1.3/spec/core/status_unsubscribe_spec.rb +4 -8
- data/schemas/core_3.1.3/spec/core/status_update_spec.rb +4 -8
- data/schemas/core_3.1.3/spec/schemer_helper.rb +19 -17
- data/schemas/core_3.1.4/.gitignore +1 -0
- data/schemas/core_3.1.4/schema/core/alarm.json +8 -4
- data/schemas/core_3.1.4/spec/core/alarm_spec.rb +15 -0
- data/schemas/core_3.1.4/spec/core/version_spec.rb +3 -2
- data/schemas/core_3.1.5/.gitignore +1 -0
- data/schemas/core_3.1.5/schema/core/alarm.json +40 -41
- data/schemas/core_3.1.5/schema/core/alarm_issue.json +44 -0
- data/schemas/core_3.1.5/schema/core/alarm_suspend_resume.json +3 -0
- data/schemas/core_3.1.5/schema/core/alarm_suspended_resumed.json +47 -0
- data/schemas/core_3.1.5/schema/core/command_response.json +1 -1
- data/schemas/core_3.1.5/schema/core/status_response.json +1 -1
- data/schemas/core_3.1.5/schema/core/status_update.json +1 -1
- data/schemas/core_3.1.5/spec/core/alarm_issue_spec.rb +299 -0
- data/schemas/core_3.1.5/spec/core/alarm_resume_spec.rb +93 -0
- data/schemas/core_3.1.5/spec/core/alarm_resumed_spec.rb +277 -0
- data/schemas/core_3.1.5/spec/core/alarm_suspend_spec.rb +93 -0
- data/schemas/core_3.1.5/spec/core/alarm_suspended_spec.rb +277 -0
- data/schemas/core_3.1.5/spec/core/version_spec.rb +3 -2
- data/schemas/tlc_1.0.15/Gemfile.lock +17 -17
- data/schemas/tlc_1.0.15/README.md +7 -0
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0001.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0002.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0003.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0004.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0005.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0006.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0007.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0008.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0009.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0010.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0101.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0201.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0202.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0301.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/alarms/A0302.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0002.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0003.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0004.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0005.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0006.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0007.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0008.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0010.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0011.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0012.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0013.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0014.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0015.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0016.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0017.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0018.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0019.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0020.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0021.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0103.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/commands/M0104.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0001.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0002.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0003.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0004.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0005.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0006.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0007.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0008.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0009.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0010.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0011.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0012.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0013.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0014.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0015.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0016.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0017.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0018.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0019.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0020.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0021.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0022.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0023.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0024.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0025.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0026.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0027.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0028.json +2 -2
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0029.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0030.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0031.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0091.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0092.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0095.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0096.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0097.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0098.json +2 -2
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0201.json +1 -1
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0202.json +2 -2
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0203.json +2 -2
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0204.json +2 -2
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0205.json +3 -3
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0206.json +3 -3
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0207.json +3 -3
- data/schemas/tlc_1.0.15/schema/tlc/statuses/S0208.json +11 -11
- data/schemas/tlc_1.0.15/schema/tlc/sxl.yaml +1655 -0
- metadata +20 -105
- data/schemas/core_3.1.2/examples/validate.rb +0 -35
- data/schemas/core_3.1.3/examples/validate.rb +0 -32
- data/schemas/core_3.1.3/schema/core/aggregated_status_request.json +0 -9
- data/schemas/core_3.1.3/schema/tlc/alarms/A0001.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/alarms/A0002.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/alarms/A0003.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/alarms/A0004.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/alarms/A0005.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/alarms/A0006.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/alarms/A0007.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/alarms/A0008.json +0 -19
- data/schemas/core_3.1.3/schema/tlc/alarms/A0009.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/alarms/A0101.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/alarms/A0201.json +0 -20
- data/schemas/core_3.1.3/schema/tlc/alarms/A0202.json +0 -20
- data/schemas/core_3.1.3/schema/tlc/alarms/A0301.json +0 -49
- data/schemas/core_3.1.3/schema/tlc/alarms/A0302.json +0 -59
- data/schemas/core_3.1.3/schema/tlc/alarms/alarms.json +0 -68
- data/schemas/core_3.1.3/schema/tlc/commands/M0001.json +0 -48
- data/schemas/core_3.1.3/schema/tlc/commands/M0002.json +0 -39
- data/schemas/core_3.1.3/schema/tlc/commands/M0003.json +0 -39
- data/schemas/core_3.1.3/schema/tlc/commands/M0004.json +0 -30
- data/schemas/core_3.1.3/schema/tlc/commands/M0005.json +0 -39
- data/schemas/core_3.1.3/schema/tlc/commands/M0006.json +0 -39
- data/schemas/core_3.1.3/schema/tlc/commands/M0007.json +0 -30
- data/schemas/core_3.1.3/schema/tlc/commands/M0008.json +0 -40
- data/schemas/core_3.1.3/schema/tlc/commands/M0010.json +0 -30
- data/schemas/core_3.1.3/schema/tlc/commands/M0011.json +0 -30
- data/schemas/core_3.1.3/schema/tlc/commands/M0012.json +0 -29
- data/schemas/core_3.1.3/schema/tlc/commands/M0013.json +0 -1
- data/schemas/core_3.1.3/schema/tlc/commands/M0014.json +0 -38
- data/schemas/core_3.1.3/schema/tlc/commands/M0015.json +0 -38
- data/schemas/core_3.1.3/schema/tlc/commands/M0016.json +0 -29
- data/schemas/core_3.1.3/schema/tlc/commands/M0017.json +0 -29
- data/schemas/core_3.1.3/schema/tlc/commands/M0018.json +0 -38
- data/schemas/core_3.1.3/schema/tlc/commands/M0019.json +0 -49
- data/schemas/core_3.1.3/schema/tlc/commands/M0020.json +0 -49
- data/schemas/core_3.1.3/schema/tlc/commands/M0021.json +0 -1
- data/schemas/core_3.1.3/schema/tlc/commands/M0103.json +0 -39
- data/schemas/core_3.1.3/schema/tlc/commands/M0104.json +0 -1
- data/schemas/core_3.1.3/schema/tlc/commands/command_requests.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/commands/command_responses.json +0 -7
- data/schemas/core_3.1.3/schema/tlc/commands/commands.json +0 -97
- data/schemas/core_3.1.3/schema/tlc/statuses/S0001.json +0 -45
- data/schemas/core_3.1.3/schema/tlc/statuses/S0002.json +0 -17
- data/schemas/core_3.1.3/schema/tlc/statuses/S0003.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0004.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0005.json +0 -18
- data/schemas/core_3.1.3/schema/tlc/statuses/S0006.json +0 -27
- data/schemas/core_3.1.3/schema/tlc/statuses/S0007.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0008.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0009.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0010.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0011.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0012.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0013.json +0 -27
- data/schemas/core_3.1.3/schema/tlc/statuses/S0014.json +0 -17
- data/schemas/core_3.1.3/schema/tlc/statuses/S0015.json +0 -17
- data/schemas/core_3.1.3/schema/tlc/statuses/S0016.json +0 -17
- data/schemas/core_3.1.3/schema/tlc/statuses/S0017.json +0 -17
- data/schemas/core_3.1.3/schema/tlc/statuses/S0018.json +0 -17
- data/schemas/core_3.1.3/schema/tlc/statuses/S0019.json +0 -17
- data/schemas/core_3.1.3/schema/tlc/statuses/S0020.json +0 -27
- data/schemas/core_3.1.3/schema/tlc/statuses/S0021.json +0 -18
- data/schemas/core_3.1.3/schema/tlc/statuses/S0022.json +0 -17
- data/schemas/core_3.1.3/schema/tlc/statuses/S0023.json +0 -18
- data/schemas/core_3.1.3/schema/tlc/statuses/S0024.json +0 -18
- data/schemas/core_3.1.3/schema/tlc/statuses/S0025.json +0 -80
- data/schemas/core_3.1.3/schema/tlc/statuses/S0026.json +0 -18
- data/schemas/core_3.1.3/schema/tlc/statuses/S0027.json +0 -18
- data/schemas/core_3.1.3/schema/tlc/statuses/S0028.json +0 -18
- data/schemas/core_3.1.3/schema/tlc/statuses/S0029.json +0 -17
- data/schemas/core_3.1.3/schema/tlc/statuses/S0030.json +0 -1
- data/schemas/core_3.1.3/schema/tlc/statuses/S0031.json +0 -1
- data/schemas/core_3.1.3/schema/tlc/statuses/S0091.json +0 -27
- data/schemas/core_3.1.3/schema/tlc/statuses/S0092.json +0 -27
- data/schemas/core_3.1.3/schema/tlc/statuses/S0095.json +0 -17
- data/schemas/core_3.1.3/schema/tlc/statuses/S0096.json +0 -68
- data/schemas/core_3.1.3/schema/tlc/statuses/S0097.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0201.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0202.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0203.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0204.json +0 -98
- data/schemas/core_3.1.3/schema/tlc/statuses/S0205.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0206.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0207.json +0 -26
- data/schemas/core_3.1.3/schema/tlc/statuses/S0208.json +0 -98
- data/schemas/core_3.1.3/schema/tlc/statuses/statuses.json +0 -181
- data/schemas/core_3.1.3/schema/tlc/sxl.json +0 -24
- data/schemas/core_3.1.3/spec/tlc/M0001_spec.rb +0 -67
- data/schemas/core_3.1.3/spec/tlc/S0007_spec.rb +0 -233
- data/schemas/core_3.1.4/examples/validate.rb +0 -35
- data/schemas/core_3.1.4/spec/core/alarm_request_spec.rb +0 -72
- data/schemas/core_3.1.5/examples/validate.rb +0 -35
- data/schemas/core_3.1.5/spec/core/alarm_request_spec.rb +0 -72
- data/schemas/core_3.1.5/spec/core/alarm_spec.rb +0 -298
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"allOf" : [
|
|
3
|
-
{ "properties" : {
|
|
4
|
-
"description": "Traffic Counting: Number of vehicles of given classification",
|
|
5
|
-
"n" : { "enum" : ["starttime", "P", "PS", "L", "LS", "B", "SP", "MC", "C", "F"] }
|
|
6
|
-
}},
|
|
7
|
-
{
|
|
8
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "starttime" }}},
|
|
9
|
-
"then" : { "properties" : {
|
|
10
|
-
"s" : {
|
|
11
|
-
"$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
|
|
12
|
-
"$ref": "../../core/definitions.json#/timestamp"
|
|
13
|
-
}
|
|
14
|
-
}}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "P" }}},
|
|
18
|
-
"then" : { "properties" : {
|
|
19
|
-
"s" : {
|
|
20
|
-
"$description": "Number of cars",
|
|
21
|
-
"$ref": "../../core/definitions.json#/integer"
|
|
22
|
-
}
|
|
23
|
-
}}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "PS" }}},
|
|
27
|
-
"then" : { "properties" : {
|
|
28
|
-
"s" : {
|
|
29
|
-
"$description": "Number of cars with trailers",
|
|
30
|
-
"$ref": "../../core/definitions.json#/integer"
|
|
31
|
-
}
|
|
32
|
-
}}
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "L" }}},
|
|
36
|
-
"then" : { "properties" : {
|
|
37
|
-
"s" : {
|
|
38
|
-
"$description": "Number of trucks",
|
|
39
|
-
"$ref": "../../core/definitions.json#/integer"
|
|
40
|
-
}
|
|
41
|
-
}}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "LS" }}},
|
|
45
|
-
"then" : { "properties" : {
|
|
46
|
-
"s" : {
|
|
47
|
-
"$description": "Number of trucks with trailers",
|
|
48
|
-
"$ref": "../../core/definitions.json#/integer"
|
|
49
|
-
}
|
|
50
|
-
}}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "B" }}},
|
|
54
|
-
"then" : { "properties" : {
|
|
55
|
-
"s" : {
|
|
56
|
-
"$description": "Number of busses",
|
|
57
|
-
"$ref": "../../core/definitions.json#/integer"
|
|
58
|
-
}
|
|
59
|
-
}}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "SP" }}},
|
|
63
|
-
"then" : { "properties" : {
|
|
64
|
-
"s" : {
|
|
65
|
-
"$description": "Number of trams",
|
|
66
|
-
"$ref": "../../core/definitions.json#/integer"
|
|
67
|
-
}
|
|
68
|
-
}}
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "MC" }}},
|
|
72
|
-
"then" : { "properties" : {
|
|
73
|
-
"s" : {
|
|
74
|
-
"$description": "Number of motor cycles",
|
|
75
|
-
"$ref": "../../core/definitions.json#/integer"
|
|
76
|
-
}
|
|
77
|
-
}}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "C" }}},
|
|
81
|
-
"then" : { "properties" : {
|
|
82
|
-
"s" : {
|
|
83
|
-
"$description": "Number of bicycles",
|
|
84
|
-
"$ref": "../../core/definitions.json#/integer"
|
|
85
|
-
}
|
|
86
|
-
}}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "F" }}},
|
|
90
|
-
"then" : { "properties" : {
|
|
91
|
-
"s" : {
|
|
92
|
-
"$description": "Number of pedestrians",
|
|
93
|
-
"$ref": "../../core/definitions.json#/integer"
|
|
94
|
-
}
|
|
95
|
-
}}
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"allOf" : [
|
|
3
|
-
{ "properties" : {
|
|
4
|
-
"description": "Traffic Counting: Number of vehicles",
|
|
5
|
-
"n" : { "enum" : ["start", "vehicles"] }
|
|
6
|
-
}},
|
|
7
|
-
{
|
|
8
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "start" }}},
|
|
9
|
-
"then" : { "properties" : {
|
|
10
|
-
"s" : {
|
|
11
|
-
"$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
|
|
12
|
-
"$ref": "../../core/definitions.json#/timestamp"
|
|
13
|
-
}
|
|
14
|
-
}}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "vehicles" }}},
|
|
18
|
-
"then" : { "properties" : {
|
|
19
|
-
"s" : {
|
|
20
|
-
"$description": "Number of vehicles<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
21
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
22
|
-
}
|
|
23
|
-
}}
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"allOf" : [
|
|
3
|
-
{ "properties" : {
|
|
4
|
-
"description": "Traffic Counting: Vehicle speed",
|
|
5
|
-
"n" : { "enum" : ["start", "speed"] }
|
|
6
|
-
}},
|
|
7
|
-
{
|
|
8
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "start" }}},
|
|
9
|
-
"then" : { "properties" : {
|
|
10
|
-
"s" : {
|
|
11
|
-
"$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
|
|
12
|
-
"$ref": "../../core/definitions.json#/timestamp"
|
|
13
|
-
}
|
|
14
|
-
}}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "speed" }}},
|
|
18
|
-
"then" : { "properties" : {
|
|
19
|
-
"s" : {
|
|
20
|
-
"$description": "Average speed in km/h (integer)<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
21
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
22
|
-
}
|
|
23
|
-
}}
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"allOf" : [
|
|
3
|
-
{ "properties" : {
|
|
4
|
-
"description": "Traffic Counting: Occupancy",
|
|
5
|
-
"n" : { "enum" : ["start", "occupancy"] }
|
|
6
|
-
}},
|
|
7
|
-
{
|
|
8
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "start" }}},
|
|
9
|
-
"then" : { "properties" : {
|
|
10
|
-
"s" : {
|
|
11
|
-
"$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
|
|
12
|
-
"$ref": "../../core/definitions.json#/timestamp"
|
|
13
|
-
}
|
|
14
|
-
}}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "occupancy" }}},
|
|
18
|
-
"then" : { "properties" : {
|
|
19
|
-
"s" : {
|
|
20
|
-
"$description": "Occupancy in percent (%) (0-100)<br> Value expressed as an integer with a range of 0-100.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
21
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
22
|
-
}
|
|
23
|
-
}}
|
|
24
|
-
}
|
|
25
|
-
]
|
|
26
|
-
}
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"allOf" : [
|
|
3
|
-
{ "properties" : {
|
|
4
|
-
"description": "Traffic Counting: Number of vehicles of given classification",
|
|
5
|
-
"n" : { "enum" : ["start", "P", "PS", "L", "LS", "B", "SP", "MC", "C", "F"] }
|
|
6
|
-
}},
|
|
7
|
-
{
|
|
8
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "start" }}},
|
|
9
|
-
"then" : { "properties" : {
|
|
10
|
-
"s" : {
|
|
11
|
-
"$description": "Time stamp for start of measuring. Format according to W3C XML dateTime with a resolution of 3 decimal places. All time stamps in UTC. E.g. 2009-10-02T14:34:34.341Z",
|
|
12
|
-
"$ref": "../../core/definitions.json#/timestamp"
|
|
13
|
-
}
|
|
14
|
-
}}
|
|
15
|
-
},
|
|
16
|
-
{
|
|
17
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "P" }}},
|
|
18
|
-
"then" : { "properties" : {
|
|
19
|
-
"s" : {
|
|
20
|
-
"$description": "Number of cars<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
21
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
22
|
-
}
|
|
23
|
-
}}
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "PS" }}},
|
|
27
|
-
"then" : { "properties" : {
|
|
28
|
-
"s" : {
|
|
29
|
-
"$description": "Number of cars with trailers<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
30
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
31
|
-
}
|
|
32
|
-
}}
|
|
33
|
-
},
|
|
34
|
-
{
|
|
35
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "L" }}},
|
|
36
|
-
"then" : { "properties" : {
|
|
37
|
-
"s" : {
|
|
38
|
-
"$description": "Number of trucks<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
39
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
40
|
-
}
|
|
41
|
-
}}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "LS" }}},
|
|
45
|
-
"then" : { "properties" : {
|
|
46
|
-
"s" : {
|
|
47
|
-
"$description": "Number of trucks with trailers<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
48
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
49
|
-
}
|
|
50
|
-
}}
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "B" }}},
|
|
54
|
-
"then" : { "properties" : {
|
|
55
|
-
"s" : {
|
|
56
|
-
"$description": "Number of busses<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
57
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
58
|
-
}
|
|
59
|
-
}}
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "SP" }}},
|
|
63
|
-
"then" : { "properties" : {
|
|
64
|
-
"s" : {
|
|
65
|
-
"$description": "Number of trams<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
66
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
67
|
-
}
|
|
68
|
-
}}
|
|
69
|
-
},
|
|
70
|
-
{
|
|
71
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "MC" }}},
|
|
72
|
-
"then" : { "properties" : {
|
|
73
|
-
"s" : {
|
|
74
|
-
"$description": "Number of motor cycles<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
75
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
76
|
-
}
|
|
77
|
-
}}
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "C" }}},
|
|
81
|
-
"then" : { "properties" : {
|
|
82
|
-
"s" : {
|
|
83
|
-
"$description": "Number of bicycles<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
84
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
85
|
-
}
|
|
86
|
-
}}
|
|
87
|
-
},
|
|
88
|
-
{
|
|
89
|
-
"if" : { "required" : ["n"], "properties" : { "n" : { "const" : "F" }}},
|
|
90
|
-
"then" : { "properties" : {
|
|
91
|
-
"s" : {
|
|
92
|
-
"$description": "Number of pedestrians<br> Value expressed as an integer with a range of 0-65535.<br> Contains data from all detector logics. Each detector logic is separated with a comma. <br> The value is set to “-1” if no data could be measured (e.g. detector fault)<br>",
|
|
93
|
-
"$ref": "../../core/definitions.json#/integer_list"
|
|
94
|
-
}
|
|
95
|
-
}}
|
|
96
|
-
}
|
|
97
|
-
]
|
|
98
|
-
}
|
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"properties" : {
|
|
3
|
-
"sS" : {
|
|
4
|
-
"items" : {
|
|
5
|
-
"allOf" : [
|
|
6
|
-
{
|
|
7
|
-
"properties": { "sCI" : { "enum": ["S0001", "S0002", "S0003", "S0004", "S0005", "S0006", "S0007", "S0008", "S0009", "S0010", "S0011", "S0012", "S0013", "S0014", "S0015", "S0016", "S0017", "S0018", "S0019", "S0020", "S0021", "S0022", "S0023", "S0024", "S0025", "S0026", "S0027", "S0028", "S0029", "S0030", "S0031", "S0091", "S0092", "S0095", "S0096", "S0097", "S0201", "S0202", "S0203", "S0204", "S0205", "S0206", "S0207", "S0208"] }}
|
|
8
|
-
},
|
|
9
|
-
{
|
|
10
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0001" }}},
|
|
11
|
-
"then" : { "$ref" : "S0001.json" }
|
|
12
|
-
},
|
|
13
|
-
{
|
|
14
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0002" }}},
|
|
15
|
-
"then" : { "$ref" : "S0002.json" }
|
|
16
|
-
},
|
|
17
|
-
{
|
|
18
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0003" }}},
|
|
19
|
-
"then" : { "$ref" : "S0003.json" }
|
|
20
|
-
},
|
|
21
|
-
{
|
|
22
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0004" }}},
|
|
23
|
-
"then" : { "$ref" : "S0004.json" }
|
|
24
|
-
},
|
|
25
|
-
{
|
|
26
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0005" }}},
|
|
27
|
-
"then" : { "$ref" : "S0005.json" }
|
|
28
|
-
},
|
|
29
|
-
{
|
|
30
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0006" }}},
|
|
31
|
-
"then" : { "$ref" : "S0006.json" }
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0007" }}},
|
|
35
|
-
"then" : { "$ref" : "S0007.json" }
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0008" }}},
|
|
39
|
-
"then" : { "$ref" : "S0008.json" }
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0009" }}},
|
|
43
|
-
"then" : { "$ref" : "S0009.json" }
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0010" }}},
|
|
47
|
-
"then" : { "$ref" : "S0010.json" }
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0011" }}},
|
|
51
|
-
"then" : { "$ref" : "S0011.json" }
|
|
52
|
-
},
|
|
53
|
-
{
|
|
54
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0012" }}},
|
|
55
|
-
"then" : { "$ref" : "S0012.json" }
|
|
56
|
-
},
|
|
57
|
-
{
|
|
58
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0013" }}},
|
|
59
|
-
"then" : { "$ref" : "S0013.json" }
|
|
60
|
-
},
|
|
61
|
-
{
|
|
62
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0014" }}},
|
|
63
|
-
"then" : { "$ref" : "S0014.json" }
|
|
64
|
-
},
|
|
65
|
-
{
|
|
66
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0015" }}},
|
|
67
|
-
"then" : { "$ref" : "S0015.json" }
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0016" }}},
|
|
71
|
-
"then" : { "$ref" : "S0016.json" }
|
|
72
|
-
},
|
|
73
|
-
{
|
|
74
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0017" }}},
|
|
75
|
-
"then" : { "$ref" : "S0017.json" }
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0018" }}},
|
|
79
|
-
"then" : { "$ref" : "S0018.json" }
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0019" }}},
|
|
83
|
-
"then" : { "$ref" : "S0019.json" }
|
|
84
|
-
},
|
|
85
|
-
{
|
|
86
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0020" }}},
|
|
87
|
-
"then" : { "$ref" : "S0020.json" }
|
|
88
|
-
},
|
|
89
|
-
{
|
|
90
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0021" }}},
|
|
91
|
-
"then" : { "$ref" : "S0021.json" }
|
|
92
|
-
},
|
|
93
|
-
{
|
|
94
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0022" }}},
|
|
95
|
-
"then" : { "$ref" : "S0022.json" }
|
|
96
|
-
},
|
|
97
|
-
{
|
|
98
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0023" }}},
|
|
99
|
-
"then" : { "$ref" : "S0023.json" }
|
|
100
|
-
},
|
|
101
|
-
{
|
|
102
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0024" }}},
|
|
103
|
-
"then" : { "$ref" : "S0024.json" }
|
|
104
|
-
},
|
|
105
|
-
{
|
|
106
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0025" }}},
|
|
107
|
-
"then" : { "$ref" : "S0025.json" }
|
|
108
|
-
},
|
|
109
|
-
{
|
|
110
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0026" }}},
|
|
111
|
-
"then" : { "$ref" : "S0026.json" }
|
|
112
|
-
},
|
|
113
|
-
{
|
|
114
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0027" }}},
|
|
115
|
-
"then" : { "$ref" : "S0027.json" }
|
|
116
|
-
},
|
|
117
|
-
{
|
|
118
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0028" }}},
|
|
119
|
-
"then" : { "$ref" : "S0028.json" }
|
|
120
|
-
},
|
|
121
|
-
{
|
|
122
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0029" }}},
|
|
123
|
-
"then" : { "$ref" : "S0029.json" }
|
|
124
|
-
},
|
|
125
|
-
{
|
|
126
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0030" }}},
|
|
127
|
-
"then" : { "$ref" : "S0030.json" }
|
|
128
|
-
},
|
|
129
|
-
{
|
|
130
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0091" }}},
|
|
131
|
-
"then" : { "$ref" : "S0091.json" }
|
|
132
|
-
},
|
|
133
|
-
{
|
|
134
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0092" }}},
|
|
135
|
-
"then" : { "$ref" : "S0092.json" }
|
|
136
|
-
},
|
|
137
|
-
{
|
|
138
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0095" }}},
|
|
139
|
-
"then" : { "$ref" : "S0095.json" }
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0096" }}},
|
|
143
|
-
"then" : { "$ref" : "S0096.json" }
|
|
144
|
-
},
|
|
145
|
-
{
|
|
146
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0201" }}},
|
|
147
|
-
"then" : { "$ref" : "S0201.json" }
|
|
148
|
-
},
|
|
149
|
-
{
|
|
150
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0202" }}},
|
|
151
|
-
"then" : { "$ref" : "S0202.json" }
|
|
152
|
-
},
|
|
153
|
-
{
|
|
154
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0203" }}},
|
|
155
|
-
"then" : { "$ref" : "S0203.json" }
|
|
156
|
-
},
|
|
157
|
-
{
|
|
158
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0204" }}},
|
|
159
|
-
"then" : { "$ref" : "S0204.json" }
|
|
160
|
-
},
|
|
161
|
-
{
|
|
162
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0205" }}},
|
|
163
|
-
"then" : { "$ref" : "S0205.json" }
|
|
164
|
-
},
|
|
165
|
-
{
|
|
166
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0206" }}},
|
|
167
|
-
"then" : { "$ref" : "S0206.json" }
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0207" }}},
|
|
171
|
-
"then" : { "$ref" : "S0207.json" }
|
|
172
|
-
},
|
|
173
|
-
{
|
|
174
|
-
"if": { "required" : ["sCI"], "properties" : { "sCI": { "const": "S0208" }}},
|
|
175
|
-
"then" : { "$ref" : "S0208.json" }
|
|
176
|
-
}
|
|
177
|
-
]
|
|
178
|
-
}
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"description": "A schema validatating message against the RSMP SXL for Traffic Light Controllers",
|
|
3
|
-
"allOf" : [
|
|
4
|
-
{
|
|
5
|
-
"$ref": "../core/rsmp.json"
|
|
6
|
-
},
|
|
7
|
-
{
|
|
8
|
-
"if" : { "required" : ["type"], "properties" : { "type" : { "const" : "CommandRequest" }}},
|
|
9
|
-
"then" : { "$ref" : "commands/command_requests.json" }
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"if" : { "required" : ["type"], "properties" : { "type" : { "const" : "CommandResponse" }}},
|
|
13
|
-
"then" : { "$ref" : "commands/command_responses.json" }
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"if" : { "required" : ["type"], "properties" : { "type" : { "enum" : ["StatusRequest","StatusResponse","StatusSubscribe","StatusUnsubscribe","StatusUpdate"] }}},
|
|
17
|
-
"then" : { "$ref" : "statuses/statuses.json" }
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
"if" : { "required" : ["type"], "properties" : { "type" : { "const" : "Alarm" }}},
|
|
21
|
-
"then" : { "$ref" : "alarms/alarms.json" }
|
|
22
|
-
}
|
|
23
|
-
]
|
|
24
|
-
}
|
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
RSpec.describe "Traffic Light Controller RSMP SXL Schema validation" do
|
|
2
|
-
let(:message) {{
|
|
3
|
-
"mType" => "rSMsg",
|
|
4
|
-
"mId" => "4173c2c8-a933-43cb-9425-66d4613731ed",
|
|
5
|
-
"type" => "CommandRequest",
|
|
6
|
-
"siteId" => [
|
|
7
|
-
{ "sId" => "RN+SI0001" }
|
|
8
|
-
],
|
|
9
|
-
"cId" => "O+14439=481WA001",
|
|
10
|
-
"arg" => [
|
|
11
|
-
{
|
|
12
|
-
"cCI" => "M0001",
|
|
13
|
-
"n" => "status",
|
|
14
|
-
"cO" => "setValue",
|
|
15
|
-
"v" => "YellowFlash"
|
|
16
|
-
}
|
|
17
|
-
]
|
|
18
|
-
}}
|
|
19
|
-
|
|
20
|
-
it 'accepts valid command' do
|
|
21
|
-
expect( validate(message) ).to be_nil
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
it 'catches bad value' do
|
|
25
|
-
invalid = message.dup
|
|
26
|
-
invalid["arg"].first['v'] = 'bad'
|
|
27
|
-
expect( validate(invalid) ).to eq([
|
|
28
|
-
["/arg/0/v", "enum"]
|
|
29
|
-
])
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
it 'catches bad name' do
|
|
33
|
-
invalid = message.dup
|
|
34
|
-
invalid["arg"].first['n'] = 'bad'
|
|
35
|
-
expect( validate(invalid) ).to eq([
|
|
36
|
-
["/arg/0/n", "enum"]
|
|
37
|
-
])
|
|
38
|
-
end
|
|
39
|
-
|
|
40
|
-
it 'catches bad status values' do
|
|
41
|
-
invalid = message.dup
|
|
42
|
-
invalid["arg"].first['n'] = 'status'
|
|
43
|
-
invalid["arg"].first['v'] = 'bad'
|
|
44
|
-
expect( validate(invalid) ).to eq([
|
|
45
|
-
["/arg/0/v", "enum"]
|
|
46
|
-
])
|
|
47
|
-
end
|
|
48
|
-
|
|
49
|
-
it 'catches bad timeout values' do
|
|
50
|
-
invalid = message.dup
|
|
51
|
-
invalid["arg"].first['n'] = 'timeout'
|
|
52
|
-
invalid["arg"].first['v'] = 'bad'
|
|
53
|
-
expect( validate(invalid) ).to eq([
|
|
54
|
-
["/arg/0/v", "pattern"]
|
|
55
|
-
])
|
|
56
|
-
end
|
|
57
|
-
|
|
58
|
-
it 'catches bad intersection values' do
|
|
59
|
-
invalid = message.dup
|
|
60
|
-
invalid["arg"].first['n'] = 'intersection'
|
|
61
|
-
invalid["arg"].first['v'] = 'bad'
|
|
62
|
-
expect( validate(invalid) ).to eq([
|
|
63
|
-
["/arg/0/v", "pattern"]
|
|
64
|
-
])
|
|
65
|
-
end
|
|
66
|
-
|
|
67
|
-
end
|