rsmp_schema 0.1.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/rsmp_schema/convert/export/json_schema.rb +96 -54
- data/lib/rsmp_schema/schema.rb +80 -24
- data/lib/rsmp_schema/version.rb +1 -1
- data/lib/rsmp_schema.rb +2 -0
- data/schemas/tlc/1.0.10/sxl.yaml +20 -40
- data/schemas/tlc/1.0.13/sxl.yaml +20 -40
- data/schemas/tlc/1.0.14/sxl.yaml +20 -40
- data/schemas/tlc/1.0.15/sxl.yaml +20 -40
- data/schemas/tlc/1.0.7/sxl.yaml +20 -40
- data/schemas/tlc/1.0.8/sxl.yaml +20 -40
- data/schemas/tlc/1.0.9/sxl.yaml +20 -40
- data/schemas/tlc/1.1/commands/M0001.json +1 -1
- data/schemas/tlc/1.1/statuses/S0032.json +1 -1
- data/schemas/tlc/1.1/statuses/S0033.json +93 -0
- data/schemas/tlc/1.1/statuses/S0205.json +8 -2
- data/schemas/tlc/1.1/statuses/S0206.json +8 -2
- data/schemas/tlc/1.1/statuses/S0207.json +8 -2
- data/schemas/tlc/1.1/statuses/S0208.json +72 -18
- data/schemas/tlc/1.1/statuses/statuses.json +16 -0
- data/schemas/tlc/1.1/sxl.yaml +186 -121
- metadata +3 -2
@@ -51,8 +51,14 @@
|
|
51
51
|
"then" : {
|
52
52
|
"properties" : {
|
53
53
|
"s" : {
|
54
|
-
"
|
55
|
-
|
54
|
+
"allOf" : [
|
55
|
+
{
|
56
|
+
"description" : "Average speed in km/h (integer).\n- Value expressed as an integer with a range of 0-65535.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
60
|
+
}
|
61
|
+
]
|
56
62
|
}
|
57
63
|
}
|
58
64
|
}
|
@@ -51,8 +51,14 @@
|
|
51
51
|
"then" : {
|
52
52
|
"properties" : {
|
53
53
|
"s" : {
|
54
|
-
"
|
55
|
-
|
54
|
+
"allOf" : [
|
55
|
+
{
|
56
|
+
"description" : "Occupancy in percent (%) (0-100)\n- Value expressed as an integer with a range of 0-100.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
57
|
+
},
|
58
|
+
{
|
59
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
60
|
+
}
|
61
|
+
]
|
56
62
|
}
|
57
63
|
}
|
58
64
|
}
|
@@ -59,8 +59,14 @@
|
|
59
59
|
"then" : {
|
60
60
|
"properties" : {
|
61
61
|
"s" : {
|
62
|
-
"
|
63
|
-
|
62
|
+
"allOf" : [
|
63
|
+
{
|
64
|
+
"description" : "Number of cars.\n- Value expressed as an integer with a range of 0-65535.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
65
|
+
},
|
66
|
+
{
|
67
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
68
|
+
}
|
69
|
+
]
|
64
70
|
}
|
65
71
|
}
|
66
72
|
}
|
@@ -79,8 +85,14 @@
|
|
79
85
|
"then" : {
|
80
86
|
"properties" : {
|
81
87
|
"s" : {
|
82
|
-
"
|
83
|
-
|
88
|
+
"allOf" : [
|
89
|
+
{
|
90
|
+
"description" : "Number of cars with trailers.\n- Value expressed as an integer with a range of 0-65535.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
91
|
+
},
|
92
|
+
{
|
93
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
94
|
+
}
|
95
|
+
]
|
84
96
|
}
|
85
97
|
}
|
86
98
|
}
|
@@ -99,8 +111,14 @@
|
|
99
111
|
"then" : {
|
100
112
|
"properties" : {
|
101
113
|
"s" : {
|
102
|
-
"
|
103
|
-
|
114
|
+
"allOf" : [
|
115
|
+
{
|
116
|
+
"description" : "Number of trucks.\n- Value expressed as an integer with a range of 0-65535.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
117
|
+
},
|
118
|
+
{
|
119
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
120
|
+
}
|
121
|
+
]
|
104
122
|
}
|
105
123
|
}
|
106
124
|
}
|
@@ -119,8 +137,14 @@
|
|
119
137
|
"then" : {
|
120
138
|
"properties" : {
|
121
139
|
"s" : {
|
122
|
-
"
|
123
|
-
|
140
|
+
"allOf" : [
|
141
|
+
{
|
142
|
+
"description" : "Number of trucks with trailers.\n- Value expressed as an integer with a range of 0-65535.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
143
|
+
},
|
144
|
+
{
|
145
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
146
|
+
}
|
147
|
+
]
|
124
148
|
}
|
125
149
|
}
|
126
150
|
}
|
@@ -139,8 +163,14 @@
|
|
139
163
|
"then" : {
|
140
164
|
"properties" : {
|
141
165
|
"s" : {
|
142
|
-
"
|
143
|
-
|
166
|
+
"allOf" : [
|
167
|
+
{
|
168
|
+
"description" : "Number of busses.\n- Value expressed as an integer with a range of 0-65535.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
169
|
+
},
|
170
|
+
{
|
171
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
172
|
+
}
|
173
|
+
]
|
144
174
|
}
|
145
175
|
}
|
146
176
|
}
|
@@ -159,8 +189,14 @@
|
|
159
189
|
"then" : {
|
160
190
|
"properties" : {
|
161
191
|
"s" : {
|
162
|
-
"
|
163
|
-
|
192
|
+
"allOf" : [
|
193
|
+
{
|
194
|
+
"description" : "Number of trams.\n- Value expressed as an integer with a range of 0-65535.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
195
|
+
},
|
196
|
+
{
|
197
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
198
|
+
}
|
199
|
+
]
|
164
200
|
}
|
165
201
|
}
|
166
202
|
}
|
@@ -179,8 +215,14 @@
|
|
179
215
|
"then" : {
|
180
216
|
"properties" : {
|
181
217
|
"s" : {
|
182
|
-
"
|
183
|
-
|
218
|
+
"allOf" : [
|
219
|
+
{
|
220
|
+
"description" : "Number of motor cycles.\n- Value expressed as an integer with a range of 0-65535.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
221
|
+
},
|
222
|
+
{
|
223
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
224
|
+
}
|
225
|
+
]
|
184
226
|
}
|
185
227
|
}
|
186
228
|
}
|
@@ -199,8 +241,14 @@
|
|
199
241
|
"then" : {
|
200
242
|
"properties" : {
|
201
243
|
"s" : {
|
202
|
-
"
|
203
|
-
|
244
|
+
"allOf" : [
|
245
|
+
{
|
246
|
+
"description" : "Number of bicycles.\n- Value expressed as an integer with a range of 0-65535.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
247
|
+
},
|
248
|
+
{
|
249
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
250
|
+
}
|
251
|
+
]
|
204
252
|
}
|
205
253
|
}
|
206
254
|
}
|
@@ -219,8 +267,14 @@
|
|
219
267
|
"then" : {
|
220
268
|
"properties" : {
|
221
269
|
"s" : {
|
222
|
-
"
|
223
|
-
|
270
|
+
"allOf" : [
|
271
|
+
{
|
272
|
+
"description" : "Number of pedestrians.\n- Value expressed as an integer with a range of 0-65535.\n- Contains data from all detector logics. Each detector logic is separated with a comma.\n- The value is set to “-1” if no data could be measured (e.g. detector fault)"
|
273
|
+
},
|
274
|
+
{
|
275
|
+
"$ref" : "../../../core/3.1.1/definitions.json#/integer_list"
|
276
|
+
}
|
277
|
+
]
|
224
278
|
}
|
225
279
|
}
|
226
280
|
}
|
@@ -39,6 +39,7 @@
|
|
39
39
|
"S0030",
|
40
40
|
"S0031",
|
41
41
|
"S0032",
|
42
|
+
"S0033",
|
42
43
|
"S0034",
|
43
44
|
"S0091",
|
44
45
|
"S0092",
|
@@ -538,6 +539,21 @@
|
|
538
539
|
"$ref" : "S0032.json"
|
539
540
|
}
|
540
541
|
},
|
542
|
+
{
|
543
|
+
"if" : {
|
544
|
+
"required" : [
|
545
|
+
"sCI"
|
546
|
+
],
|
547
|
+
"properties" : {
|
548
|
+
"sCI" : {
|
549
|
+
"const" : "S0033"
|
550
|
+
}
|
551
|
+
}
|
552
|
+
},
|
553
|
+
"then" : {
|
554
|
+
"$ref" : "S0033.json"
|
555
|
+
}
|
556
|
+
},
|
541
557
|
{
|
542
558
|
"if" : {
|
543
559
|
"required" : [
|