rsmp_schemer 0.4.1 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (192) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +15 -15
  3. data/lib/rsmp_schemer/version.rb +3 -3
  4. data/rsmp_schemer.gemspec +2 -2
  5. data/schemas/core_3.1.3/Gemfile.lock +20 -20
  6. data/schemas/core_3.1.3/schema/core/alarm.json +8 -4
  7. data/schemas/core_3.1.3/schema/core/core.json +0 -1
  8. data/schemas/core_3.1.3/schema/core/rsmp.json +0 -9
  9. data/schemas/core_3.1.3/spec/core/alarm_spec.rb +20 -7
  10. data/schemas/core_3.1.3/spec/core/command_request_spec.rb +3 -6
  11. data/schemas/core_3.1.3/spec/core/command_response_spec.rb +1 -43
  12. data/schemas/core_3.1.3/spec/core/status_request_spec.rb +4 -8
  13. data/schemas/core_3.1.3/spec/core/status_response_spec.rb +13 -8
  14. data/schemas/core_3.1.3/spec/core/status_subscribe_spec.rb +4 -8
  15. data/schemas/core_3.1.3/spec/core/status_unsubscribe_spec.rb +4 -8
  16. data/schemas/core_3.1.3/spec/core/status_update_spec.rb +4 -8
  17. data/schemas/core_3.1.3/spec/schemer_helper.rb +19 -17
  18. data/schemas/tlc_1.0.15/Gemfile.lock +17 -17
  19. data/schemas/tlc_1.0.15/README.md +7 -0
  20. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0001.json +1 -1
  21. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0002.json +1 -1
  22. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0003.json +1 -1
  23. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0004.json +1 -1
  24. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0005.json +1 -1
  25. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0006.json +1 -1
  26. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0007.json +1 -1
  27. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0008.json +1 -1
  28. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0009.json +1 -1
  29. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0010.json +1 -1
  30. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0101.json +1 -1
  31. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0201.json +1 -1
  32. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0202.json +1 -1
  33. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0301.json +1 -1
  34. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0302.json +1 -1
  35. data/schemas/tlc_1.0.15/schema/tlc/commands/M0002.json +1 -1
  36. data/schemas/tlc_1.0.15/schema/tlc/commands/M0003.json +1 -1
  37. data/schemas/tlc_1.0.15/schema/tlc/commands/M0004.json +1 -1
  38. data/schemas/tlc_1.0.15/schema/tlc/commands/M0005.json +1 -1
  39. data/schemas/tlc_1.0.15/schema/tlc/commands/M0006.json +1 -1
  40. data/schemas/tlc_1.0.15/schema/tlc/commands/M0007.json +1 -1
  41. data/schemas/tlc_1.0.15/schema/tlc/commands/M0008.json +1 -1
  42. data/schemas/tlc_1.0.15/schema/tlc/commands/M0010.json +1 -1
  43. data/schemas/tlc_1.0.15/schema/tlc/commands/M0011.json +1 -1
  44. data/schemas/tlc_1.0.15/schema/tlc/commands/M0012.json +1 -1
  45. data/schemas/tlc_1.0.15/schema/tlc/commands/M0013.json +1 -1
  46. data/schemas/tlc_1.0.15/schema/tlc/commands/M0014.json +1 -1
  47. data/schemas/tlc_1.0.15/schema/tlc/commands/M0015.json +1 -1
  48. data/schemas/tlc_1.0.15/schema/tlc/commands/M0016.json +1 -1
  49. data/schemas/tlc_1.0.15/schema/tlc/commands/M0017.json +1 -1
  50. data/schemas/tlc_1.0.15/schema/tlc/commands/M0018.json +1 -1
  51. data/schemas/tlc_1.0.15/schema/tlc/commands/M0019.json +1 -1
  52. data/schemas/tlc_1.0.15/schema/tlc/commands/M0020.json +1 -1
  53. data/schemas/tlc_1.0.15/schema/tlc/commands/M0021.json +1 -1
  54. data/schemas/tlc_1.0.15/schema/tlc/commands/M0103.json +1 -1
  55. data/schemas/tlc_1.0.15/schema/tlc/commands/M0104.json +1 -1
  56. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0001.json +1 -1
  57. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0002.json +1 -1
  58. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0003.json +1 -1
  59. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0004.json +1 -1
  60. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0005.json +1 -1
  61. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0006.json +1 -1
  62. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0007.json +1 -1
  63. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0008.json +1 -1
  64. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0009.json +1 -1
  65. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0010.json +1 -1
  66. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0011.json +1 -1
  67. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0012.json +1 -1
  68. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0013.json +1 -1
  69. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0014.json +1 -1
  70. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0015.json +1 -1
  71. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0016.json +1 -1
  72. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0017.json +1 -1
  73. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0018.json +1 -1
  74. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0019.json +1 -1
  75. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0020.json +1 -1
  76. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0021.json +1 -1
  77. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0022.json +1 -1
  78. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0023.json +1 -1
  79. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0024.json +1 -1
  80. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0025.json +1 -1
  81. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0026.json +1 -1
  82. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0027.json +1 -1
  83. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0028.json +2 -2
  84. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0029.json +1 -1
  85. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0030.json +1 -1
  86. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0031.json +1 -1
  87. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0091.json +1 -1
  88. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0092.json +1 -1
  89. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0095.json +1 -1
  90. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0096.json +1 -1
  91. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0097.json +1 -1
  92. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0098.json +2 -2
  93. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0201.json +1 -1
  94. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0202.json +2 -2
  95. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0203.json +2 -2
  96. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0204.json +2 -2
  97. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0205.json +3 -3
  98. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0206.json +3 -3
  99. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0207.json +3 -3
  100. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0208.json +11 -11
  101. data/schemas/tlc_1.0.15/schema/tlc/sxl.yaml +1655 -0
  102. metadata +8 -97
  103. data/schemas/core_3.1.3/examples/validate.rb +0 -32
  104. data/schemas/core_3.1.3/schema/core/aggregated_status_request.json +0 -9
  105. data/schemas/core_3.1.3/schema/tlc/alarms/A0001.json +0 -7
  106. data/schemas/core_3.1.3/schema/tlc/alarms/A0002.json +0 -7
  107. data/schemas/core_3.1.3/schema/tlc/alarms/A0003.json +0 -7
  108. data/schemas/core_3.1.3/schema/tlc/alarms/A0004.json +0 -7
  109. data/schemas/core_3.1.3/schema/tlc/alarms/A0005.json +0 -7
  110. data/schemas/core_3.1.3/schema/tlc/alarms/A0006.json +0 -7
  111. data/schemas/core_3.1.3/schema/tlc/alarms/A0007.json +0 -7
  112. data/schemas/core_3.1.3/schema/tlc/alarms/A0008.json +0 -19
  113. data/schemas/core_3.1.3/schema/tlc/alarms/A0009.json +0 -7
  114. data/schemas/core_3.1.3/schema/tlc/alarms/A0101.json +0 -7
  115. data/schemas/core_3.1.3/schema/tlc/alarms/A0201.json +0 -20
  116. data/schemas/core_3.1.3/schema/tlc/alarms/A0202.json +0 -20
  117. data/schemas/core_3.1.3/schema/tlc/alarms/A0301.json +0 -49
  118. data/schemas/core_3.1.3/schema/tlc/alarms/A0302.json +0 -59
  119. data/schemas/core_3.1.3/schema/tlc/alarms/alarms.json +0 -68
  120. data/schemas/core_3.1.3/schema/tlc/commands/M0001.json +0 -48
  121. data/schemas/core_3.1.3/schema/tlc/commands/M0002.json +0 -39
  122. data/schemas/core_3.1.3/schema/tlc/commands/M0003.json +0 -39
  123. data/schemas/core_3.1.3/schema/tlc/commands/M0004.json +0 -30
  124. data/schemas/core_3.1.3/schema/tlc/commands/M0005.json +0 -39
  125. data/schemas/core_3.1.3/schema/tlc/commands/M0006.json +0 -39
  126. data/schemas/core_3.1.3/schema/tlc/commands/M0007.json +0 -30
  127. data/schemas/core_3.1.3/schema/tlc/commands/M0008.json +0 -40
  128. data/schemas/core_3.1.3/schema/tlc/commands/M0010.json +0 -30
  129. data/schemas/core_3.1.3/schema/tlc/commands/M0011.json +0 -30
  130. data/schemas/core_3.1.3/schema/tlc/commands/M0012.json +0 -29
  131. data/schemas/core_3.1.3/schema/tlc/commands/M0013.json +0 -1
  132. data/schemas/core_3.1.3/schema/tlc/commands/M0014.json +0 -38
  133. data/schemas/core_3.1.3/schema/tlc/commands/M0015.json +0 -38
  134. data/schemas/core_3.1.3/schema/tlc/commands/M0016.json +0 -29
  135. data/schemas/core_3.1.3/schema/tlc/commands/M0017.json +0 -29
  136. data/schemas/core_3.1.3/schema/tlc/commands/M0018.json +0 -38
  137. data/schemas/core_3.1.3/schema/tlc/commands/M0019.json +0 -49
  138. data/schemas/core_3.1.3/schema/tlc/commands/M0020.json +0 -49
  139. data/schemas/core_3.1.3/schema/tlc/commands/M0021.json +0 -1
  140. data/schemas/core_3.1.3/schema/tlc/commands/M0103.json +0 -39
  141. data/schemas/core_3.1.3/schema/tlc/commands/M0104.json +0 -1
  142. data/schemas/core_3.1.3/schema/tlc/commands/command_requests.json +0 -7
  143. data/schemas/core_3.1.3/schema/tlc/commands/command_responses.json +0 -7
  144. data/schemas/core_3.1.3/schema/tlc/commands/commands.json +0 -97
  145. data/schemas/core_3.1.3/schema/tlc/statuses/S0001.json +0 -45
  146. data/schemas/core_3.1.3/schema/tlc/statuses/S0002.json +0 -17
  147. data/schemas/core_3.1.3/schema/tlc/statuses/S0003.json +0 -26
  148. data/schemas/core_3.1.3/schema/tlc/statuses/S0004.json +0 -26
  149. data/schemas/core_3.1.3/schema/tlc/statuses/S0005.json +0 -18
  150. data/schemas/core_3.1.3/schema/tlc/statuses/S0006.json +0 -27
  151. data/schemas/core_3.1.3/schema/tlc/statuses/S0007.json +0 -26
  152. data/schemas/core_3.1.3/schema/tlc/statuses/S0008.json +0 -26
  153. data/schemas/core_3.1.3/schema/tlc/statuses/S0009.json +0 -26
  154. data/schemas/core_3.1.3/schema/tlc/statuses/S0010.json +0 -26
  155. data/schemas/core_3.1.3/schema/tlc/statuses/S0011.json +0 -26
  156. data/schemas/core_3.1.3/schema/tlc/statuses/S0012.json +0 -26
  157. data/schemas/core_3.1.3/schema/tlc/statuses/S0013.json +0 -27
  158. data/schemas/core_3.1.3/schema/tlc/statuses/S0014.json +0 -17
  159. data/schemas/core_3.1.3/schema/tlc/statuses/S0015.json +0 -17
  160. data/schemas/core_3.1.3/schema/tlc/statuses/S0016.json +0 -17
  161. data/schemas/core_3.1.3/schema/tlc/statuses/S0017.json +0 -17
  162. data/schemas/core_3.1.3/schema/tlc/statuses/S0018.json +0 -17
  163. data/schemas/core_3.1.3/schema/tlc/statuses/S0019.json +0 -17
  164. data/schemas/core_3.1.3/schema/tlc/statuses/S0020.json +0 -27
  165. data/schemas/core_3.1.3/schema/tlc/statuses/S0021.json +0 -18
  166. data/schemas/core_3.1.3/schema/tlc/statuses/S0022.json +0 -17
  167. data/schemas/core_3.1.3/schema/tlc/statuses/S0023.json +0 -18
  168. data/schemas/core_3.1.3/schema/tlc/statuses/S0024.json +0 -18
  169. data/schemas/core_3.1.3/schema/tlc/statuses/S0025.json +0 -80
  170. data/schemas/core_3.1.3/schema/tlc/statuses/S0026.json +0 -18
  171. data/schemas/core_3.1.3/schema/tlc/statuses/S0027.json +0 -18
  172. data/schemas/core_3.1.3/schema/tlc/statuses/S0028.json +0 -18
  173. data/schemas/core_3.1.3/schema/tlc/statuses/S0029.json +0 -17
  174. data/schemas/core_3.1.3/schema/tlc/statuses/S0030.json +0 -1
  175. data/schemas/core_3.1.3/schema/tlc/statuses/S0031.json +0 -1
  176. data/schemas/core_3.1.3/schema/tlc/statuses/S0091.json +0 -27
  177. data/schemas/core_3.1.3/schema/tlc/statuses/S0092.json +0 -27
  178. data/schemas/core_3.1.3/schema/tlc/statuses/S0095.json +0 -17
  179. data/schemas/core_3.1.3/schema/tlc/statuses/S0096.json +0 -68
  180. data/schemas/core_3.1.3/schema/tlc/statuses/S0097.json +0 -26
  181. data/schemas/core_3.1.3/schema/tlc/statuses/S0201.json +0 -26
  182. data/schemas/core_3.1.3/schema/tlc/statuses/S0202.json +0 -26
  183. data/schemas/core_3.1.3/schema/tlc/statuses/S0203.json +0 -26
  184. data/schemas/core_3.1.3/schema/tlc/statuses/S0204.json +0 -98
  185. data/schemas/core_3.1.3/schema/tlc/statuses/S0205.json +0 -26
  186. data/schemas/core_3.1.3/schema/tlc/statuses/S0206.json +0 -26
  187. data/schemas/core_3.1.3/schema/tlc/statuses/S0207.json +0 -26
  188. data/schemas/core_3.1.3/schema/tlc/statuses/S0208.json +0 -98
  189. data/schemas/core_3.1.3/schema/tlc/statuses/statuses.json +0 -181
  190. data/schemas/core_3.1.3/schema/tlc/sxl.json +0 -24
  191. data/schemas/core_3.1.3/spec/tlc/M0001_spec.rb +0 -67
  192. data/schemas/core_3.1.3/spec/tlc/S0007_spec.rb +0 -233
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsmp_schemer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-08-04 00:00:00.000000000 Z
11
+ date: 2022-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schemer
@@ -30,28 +30,28 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 3.9.0
33
+ version: 3.11.0
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 3.9.0
40
+ version: 3.11.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec-expectations
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: 3.9.1
47
+ version: 3.11.0
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: 3.9.1
54
+ version: 3.11.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -133,9 +133,7 @@ files:
133
133
  - schemas/core_3.1.3/Gemfile.lock
134
134
  - schemas/core_3.1.3/LICENSE
135
135
  - schemas/core_3.1.3/README.md
136
- - schemas/core_3.1.3/examples/validate.rb
137
136
  - schemas/core_3.1.3/schema/core/aggregated_status.json
138
- - schemas/core_3.1.3/schema/core/aggregated_status_request.json
139
137
  - schemas/core_3.1.3/schema/core/alarm.json
140
138
  - schemas/core_3.1.3/schema/core/command_request.json
141
139
  - schemas/core_3.1.3/schema/core/command_response.json
@@ -152,92 +150,6 @@ files:
152
150
  - schemas/core_3.1.3/schema/core/status_update.json
153
151
  - schemas/core_3.1.3/schema/core/version.json
154
152
  - schemas/core_3.1.3/schema/core/watchdog.json
155
- - schemas/core_3.1.3/schema/tlc/alarms/A0001.json
156
- - schemas/core_3.1.3/schema/tlc/alarms/A0002.json
157
- - schemas/core_3.1.3/schema/tlc/alarms/A0003.json
158
- - schemas/core_3.1.3/schema/tlc/alarms/A0004.json
159
- - schemas/core_3.1.3/schema/tlc/alarms/A0005.json
160
- - schemas/core_3.1.3/schema/tlc/alarms/A0006.json
161
- - schemas/core_3.1.3/schema/tlc/alarms/A0007.json
162
- - schemas/core_3.1.3/schema/tlc/alarms/A0008.json
163
- - schemas/core_3.1.3/schema/tlc/alarms/A0009.json
164
- - schemas/core_3.1.3/schema/tlc/alarms/A0101.json
165
- - schemas/core_3.1.3/schema/tlc/alarms/A0201.json
166
- - schemas/core_3.1.3/schema/tlc/alarms/A0202.json
167
- - schemas/core_3.1.3/schema/tlc/alarms/A0301.json
168
- - schemas/core_3.1.3/schema/tlc/alarms/A0302.json
169
- - schemas/core_3.1.3/schema/tlc/alarms/alarms.json
170
- - schemas/core_3.1.3/schema/tlc/commands/M0001.json
171
- - schemas/core_3.1.3/schema/tlc/commands/M0002.json
172
- - schemas/core_3.1.3/schema/tlc/commands/M0003.json
173
- - schemas/core_3.1.3/schema/tlc/commands/M0004.json
174
- - schemas/core_3.1.3/schema/tlc/commands/M0005.json
175
- - schemas/core_3.1.3/schema/tlc/commands/M0006.json
176
- - schemas/core_3.1.3/schema/tlc/commands/M0007.json
177
- - schemas/core_3.1.3/schema/tlc/commands/M0008.json
178
- - schemas/core_3.1.3/schema/tlc/commands/M0010.json
179
- - schemas/core_3.1.3/schema/tlc/commands/M0011.json
180
- - schemas/core_3.1.3/schema/tlc/commands/M0012.json
181
- - schemas/core_3.1.3/schema/tlc/commands/M0013.json
182
- - schemas/core_3.1.3/schema/tlc/commands/M0014.json
183
- - schemas/core_3.1.3/schema/tlc/commands/M0015.json
184
- - schemas/core_3.1.3/schema/tlc/commands/M0016.json
185
- - schemas/core_3.1.3/schema/tlc/commands/M0017.json
186
- - schemas/core_3.1.3/schema/tlc/commands/M0018.json
187
- - schemas/core_3.1.3/schema/tlc/commands/M0019.json
188
- - schemas/core_3.1.3/schema/tlc/commands/M0020.json
189
- - schemas/core_3.1.3/schema/tlc/commands/M0021.json
190
- - schemas/core_3.1.3/schema/tlc/commands/M0103.json
191
- - schemas/core_3.1.3/schema/tlc/commands/M0104.json
192
- - schemas/core_3.1.3/schema/tlc/commands/command_requests.json
193
- - schemas/core_3.1.3/schema/tlc/commands/command_responses.json
194
- - schemas/core_3.1.3/schema/tlc/commands/commands.json
195
- - schemas/core_3.1.3/schema/tlc/statuses/S0001.json
196
- - schemas/core_3.1.3/schema/tlc/statuses/S0002.json
197
- - schemas/core_3.1.3/schema/tlc/statuses/S0003.json
198
- - schemas/core_3.1.3/schema/tlc/statuses/S0004.json
199
- - schemas/core_3.1.3/schema/tlc/statuses/S0005.json
200
- - schemas/core_3.1.3/schema/tlc/statuses/S0006.json
201
- - schemas/core_3.1.3/schema/tlc/statuses/S0007.json
202
- - schemas/core_3.1.3/schema/tlc/statuses/S0008.json
203
- - schemas/core_3.1.3/schema/tlc/statuses/S0009.json
204
- - schemas/core_3.1.3/schema/tlc/statuses/S0010.json
205
- - schemas/core_3.1.3/schema/tlc/statuses/S0011.json
206
- - schemas/core_3.1.3/schema/tlc/statuses/S0012.json
207
- - schemas/core_3.1.3/schema/tlc/statuses/S0013.json
208
- - schemas/core_3.1.3/schema/tlc/statuses/S0014.json
209
- - schemas/core_3.1.3/schema/tlc/statuses/S0015.json
210
- - schemas/core_3.1.3/schema/tlc/statuses/S0016.json
211
- - schemas/core_3.1.3/schema/tlc/statuses/S0017.json
212
- - schemas/core_3.1.3/schema/tlc/statuses/S0018.json
213
- - schemas/core_3.1.3/schema/tlc/statuses/S0019.json
214
- - schemas/core_3.1.3/schema/tlc/statuses/S0020.json
215
- - schemas/core_3.1.3/schema/tlc/statuses/S0021.json
216
- - schemas/core_3.1.3/schema/tlc/statuses/S0022.json
217
- - schemas/core_3.1.3/schema/tlc/statuses/S0023.json
218
- - schemas/core_3.1.3/schema/tlc/statuses/S0024.json
219
- - schemas/core_3.1.3/schema/tlc/statuses/S0025.json
220
- - schemas/core_3.1.3/schema/tlc/statuses/S0026.json
221
- - schemas/core_3.1.3/schema/tlc/statuses/S0027.json
222
- - schemas/core_3.1.3/schema/tlc/statuses/S0028.json
223
- - schemas/core_3.1.3/schema/tlc/statuses/S0029.json
224
- - schemas/core_3.1.3/schema/tlc/statuses/S0030.json
225
- - schemas/core_3.1.3/schema/tlc/statuses/S0031.json
226
- - schemas/core_3.1.3/schema/tlc/statuses/S0091.json
227
- - schemas/core_3.1.3/schema/tlc/statuses/S0092.json
228
- - schemas/core_3.1.3/schema/tlc/statuses/S0095.json
229
- - schemas/core_3.1.3/schema/tlc/statuses/S0096.json
230
- - schemas/core_3.1.3/schema/tlc/statuses/S0097.json
231
- - schemas/core_3.1.3/schema/tlc/statuses/S0201.json
232
- - schemas/core_3.1.3/schema/tlc/statuses/S0202.json
233
- - schemas/core_3.1.3/schema/tlc/statuses/S0203.json
234
- - schemas/core_3.1.3/schema/tlc/statuses/S0204.json
235
- - schemas/core_3.1.3/schema/tlc/statuses/S0205.json
236
- - schemas/core_3.1.3/schema/tlc/statuses/S0206.json
237
- - schemas/core_3.1.3/schema/tlc/statuses/S0207.json
238
- - schemas/core_3.1.3/schema/tlc/statuses/S0208.json
239
- - schemas/core_3.1.3/schema/tlc/statuses/statuses.json
240
- - schemas/core_3.1.3/schema/tlc/sxl.json
241
153
  - schemas/core_3.1.3/spec/core/aggregated_status_spec.rb
242
154
  - schemas/core_3.1.3/spec/core/alarm_spec.rb
243
155
  - schemas/core_3.1.3/spec/core/command_request_spec.rb
@@ -254,8 +166,6 @@ files:
254
166
  - schemas/core_3.1.3/spec/core/watchdog_spec.rb
255
167
  - schemas/core_3.1.3/spec/schemer_helper.rb
256
168
  - schemas/core_3.1.3/spec/spec_helper.rb
257
- - schemas/core_3.1.3/spec/tlc/M0001_spec.rb
258
- - schemas/core_3.1.3/spec/tlc/S0007_spec.rb
259
169
  - schemas/core_3.1.4/.gitignore
260
170
  - schemas/core_3.1.4/.rspec
261
171
  - schemas/core_3.1.4/Gemfile
@@ -694,6 +604,7 @@ files:
694
604
  - schemas/tlc_1.0.15/schema/tlc/statuses/S0208.json
695
605
  - schemas/tlc_1.0.15/schema/tlc/statuses/statuses.json
696
606
  - schemas/tlc_1.0.15/schema/tlc/sxl.json
607
+ - schemas/tlc_1.0.15/schema/tlc/sxl.yaml
697
608
  - schemas/tlc_1.0.15/spec/schemer_helper.rb
698
609
  - schemas/tlc_1.0.15/spec/spec_helper.rb
699
610
  - schemas/tlc_1.0.15/spec/tlc/M0001_spec.rb
@@ -943,7 +854,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
943
854
  - !ruby/object:Gem::Version
944
855
  version: '0'
945
856
  requirements: []
946
- rubygems_version: 3.2.32
857
+ rubygems_version: 3.3.7
947
858
  signing_key:
948
859
  specification_version: 4
949
860
  summary: Validate RSMP message against RSMP JSON Schema.
@@ -1,32 +0,0 @@
1
- require 'json_schemer'
2
-
3
- message = {
4
- "mType" => "rSMsg",
5
- "mId" => "4173c2c8-a933-43cb-9425-66d4613731ed",
6
- "type" => "CommandRequest",
7
- "siteId" => [
8
- { "sId" => "RN+SI0001" }
9
- ],
10
- "cId" => "O+14439=481WA001",
11
- "arg" => [
12
- {
13
- "cCI" => "M0002",
14
- "n" => "timeplan",
15
- "cO" => "setPlan",
16
- "v" => "1"
17
- }
18
- ]
19
- }
20
-
21
- # try validating a message against our schema
22
- schema = Pathname.new('schema/tlc/sxl.json')
23
- schemer = JSONSchemer.schema(schema)
24
- if schemer.valid? message
25
- puts 'ok'
26
- else
27
- schemer.validate(message).each do |item|
28
- puts [item['data_pointer'],item['type'],item['details']].compact.join(' ')
29
- end
30
- end
31
-
32
-
@@ -1,9 +0,0 @@
1
- {
2
- "title" : "Aggregated Status Request",
3
- "description" : "Aggregated status request message",
4
- "properties" : {
5
- "mId" : { "$ref": "definitions.json#/message_id" },
6
- "cId" : { "$ref": "definitions.json#/component_id" }
7
- },
8
- "required" : [ "mId", "cId" ]
9
- }
@@ -1,7 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Serious hardware error",
5
- }
6
- ]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Less serious hardware error",
5
- }
6
- ]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Serious configuration error",
5
- }
6
- ]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Less serious configuration error",
5
- }
6
- ]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Communication error between traffic controllers / synchronisation error",
5
- }
6
- ]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Safety error",
5
- }
6
- ]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Communication error between one or multiple traffic controllers and central control system",
5
- }
6
- ]
7
- }
@@ -1,19 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Dead lock error",
5
- "properties" : {
6
- "n" : { "enum" : ["timeplan"] }
7
- }
8
- },
9
- {
10
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "timeplan" }}},
11
- "then" : { "properties" : {
12
- "v" : {
13
- "$description": "Current time plan",
14
- "$ref": "../../core/definitions.json#/integer"
15
- }
16
- }}
17
- }
18
- ]
19
- }
@@ -1,7 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Other error",
5
- }
6
- ]
7
- }
@@ -1,7 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Pushbutton error",
5
- }
6
- ]
7
- }
@@ -1,20 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Serious lamp error",
5
- "properties" : {
6
- "n" : { "enum" : ["color"] }
7
- }
8
- },
9
- {
10
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "color" }}},
11
- "then" : { "properties" : {
12
- "v" : {
13
- "$description": "Color of lamp",
14
- "type" : "string",
15
- "enum" : ["red", "yellow", "green"]
16
- }
17
- }}
18
- }
19
- ]
20
- }
@@ -1,20 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Less serious lamp error",
5
- "properties" : {
6
- "n" : { "enum" : ["color"] }
7
- }
8
- },
9
- {
10
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "color" }}},
11
- "then" : { "properties" : {
12
- "v" : {
13
- "$description": "Color of lamp",
14
- "type" : "string",
15
- "enum" : ["red", "yellow", "green"]
16
- }
17
- }}
18
- }
19
- ]
20
- }
@@ -1,49 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Detector error (hardware)",
5
- "properties" : {
6
- "n" : { "enum" : ["detector", "type", "errormode", "manual"] }
7
- }
8
- },
9
- {
10
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "detector" }}},
11
- "then" : { "properties" : {
12
- "v" : {
13
- "$description": "Designation of the detector",
14
- "$ref": "../../core/definitions.json#/integer"
15
- }
16
- }}
17
- },
18
- {
19
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "type" }}},
20
- "then" : { "properties" : {
21
- "v" : {
22
- "$description": "Type of detector.<br>loop: Inductive detector loop<br>input: External input",
23
- "type" : "string",
24
- "enum" : ["loop", "input"]
25
- }
26
- }}
27
- },
28
- {
29
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "errormode" }}},
30
- "then" : { "properties" : {
31
- "v" : {
32
- "$description": "Dectector forced on/off while detector error",
33
- "type" : "string",
34
- "enum" : ["on", "off"]
35
- }
36
- }}
37
- },
38
- {
39
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "manual" }}},
40
- "then" : { "properties" : {
41
- "v" : {
42
- "$description": "Manually controlled detector logic (True/False)",
43
- "type" : "string",
44
- "enum" : [ "True", "False" ]
45
- }
46
- }}
47
- }
48
- ]
49
- }
@@ -1,59 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "description": "Detector error (logic error)",
5
- "properties" : {
6
- "n" : { "enum" : ["detector", "type", "errormode", "manual", "logicerror"] }
7
- }
8
- },
9
- {
10
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "detector" }}},
11
- "then" : { "properties" : {
12
- "v" : {
13
- "$description": "Designation of the detector",
14
- "$ref": "../../core/definitions.json#/integer"
15
- }
16
- }}
17
- },
18
- {
19
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "type" }}},
20
- "then" : { "properties" : {
21
- "v" : {
22
- "$description": "Type of detector.<br>loop: Inductive detector loop<br>input: External input",
23
- "type" : "string",
24
- "enum" : ["loop", "input"]
25
- }
26
- }}
27
- },
28
- {
29
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "errormode" }}},
30
- "then" : { "properties" : {
31
- "v" : {
32
- "$description": "Dectector forced on/off while detector error",
33
- "type" : "string",
34
- "enum" : ["on", "off"]
35
- }
36
- }}
37
- },
38
- {
39
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "manual" }}},
40
- "then" : { "properties" : {
41
- "v" : {
42
- "$description": "Manually controlled detector logic (True/False)",
43
- "type" : "string",
44
- "enum" : [ "True", "False" ]
45
- }
46
- }}
47
- },
48
- {
49
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "logicerror" }}},
50
- "then" : { "properties" : {
51
- "v" : {
52
- "$description": "Type of logic error<br>always_off: no detection during prefined max time<br>always on: detection constantly on during predefined max time<br>intermittent: intermittent logic fault (flutter)",
53
- "type" : "string",
54
- "enum" : ["always_off", "always_on", "intermittent"]
55
- }
56
- }}
57
- }
58
- ]
59
- }
@@ -1,68 +0,0 @@
1
- {
2
- "properties" : {
3
- "aCId" : { "enum": ["A0001", "A0002", "A0003", "A0004", "A0005", "A0006", "A0007", "A0008", "A0009", "A0101", "A0201", "A0202", "A0301", "A0302"] },
4
- "rvs" : {
5
- "items" : {
6
- "allOf" : [
7
- {},
8
- {
9
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0001" }}},
10
- "then" : { "$ref" : "A0001.json" }
11
- },
12
- {
13
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0002" }}},
14
- "then" : { "$ref" : "A0002.json" }
15
- },
16
- {
17
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0003" }}},
18
- "then" : { "$ref" : "A0003.json" }
19
- },
20
- {
21
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0004" }}},
22
- "then" : { "$ref" : "A0004.json" }
23
- },
24
- {
25
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0005" }}},
26
- "then" : { "$ref" : "A0005.json" }
27
- },
28
- {
29
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0006" }}},
30
- "then" : { "$ref" : "A0006.json" }
31
- },
32
- {
33
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0007" }}},
34
- "then" : { "$ref" : "A0007.json" }
35
- },
36
- {
37
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0008" }}},
38
- "then" : { "$ref" : "A0008.json" }
39
- },
40
- {
41
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0009" }}},
42
- "then" : { "$ref" : "A0009.json" }
43
- },
44
- {
45
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0101" }}},
46
- "then" : { "$ref" : "A0101.json" }
47
- },
48
- {
49
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0201" }}},
50
- "then" : { "$ref" : "A0201.json" }
51
- },
52
- {
53
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0202" }}},
54
- "then" : { "$ref" : "A0202.json" }
55
- },
56
- {
57
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0301" }}},
58
- "then" : { "$ref" : "A0301.json" }
59
- },
60
- {
61
- "if": { "required" : ["aCId"], "properties" : { "aCId": { "const": "A0302" }}},
62
- "then" : { "$ref" : "A0302.json" }
63
- }
64
- ]
65
- }
66
- }
67
- }
68
- }
@@ -1,48 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "properties" : {
5
- "description": "Sets functional position<br>Requires security code 2",
6
- "n" : { "enum" : ["status", "securityCode", "timeout", "intersection"] },
7
- "cO" : { "const" : "setValue" }
8
- }
9
- },
10
- {
11
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "status" }}},
12
- "then" : { "properties" : {
13
- "v" : {
14
- "$description": "NormalControl: Normal Control<br>YellowFlash: Enables yellow flash<br>Dark: Enables dark mode",
15
- "type" : "string",
16
- "enum" : ["NormalControl", "YellowFlash", "Dark"]
17
- }
18
- }}
19
- },
20
- {
21
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "securityCode" }}},
22
- "then" : { "properties" : {
23
- "v" : {
24
- "$description": "Security code 2 ",
25
- "type" : "string"
26
- }
27
- }}
28
- },
29
- {
30
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "timeout" }}},
31
- "then" : { "properties" : {
32
- "v" : {
33
- "$description": "Time in minutes until controller automatically reverts to previous functional position.<br>0=no automatic return",
34
- "$ref": "../../core/definitions.json#/integer"
35
- }
36
- }}
37
- },
38
- {
39
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "intersection" }}},
40
- "then" : { "properties" : {
41
- "v" : {
42
- "$description": "Intersection number",
43
- "$ref": "../../core/definitions.json#/integer"
44
- }
45
- }}
46
- }
47
- ]
48
- }
@@ -1,39 +0,0 @@
1
- {
2
- "allOf" : [
3
- {
4
- "properties" : {
5
- "description": "Sets current time plan<br>Requires security code 2",
6
- "n" : { "enum" : ["status", "securityCode", "timeplan"] },
7
- "cO" : { "const" : "setPlan" }
8
- }
9
- },
10
- {
11
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "status" }}},
12
- "then" : { "properties" : {
13
- "v" : {
14
- "$description": "False: Controller uses time plan according to programming<br>True: Contoller uses time plan according to command",
15
- "type" : "string",
16
- "enum" : [ "True", "False" ]
17
- }
18
- }}
19
- },
20
- {
21
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "securityCode" }}},
22
- "then" : { "properties" : {
23
- "v" : {
24
- "$description": "Security code 2",
25
- "type" : "string"
26
- }
27
- }}
28
- },
29
- {
30
- "if" : { "required" : ["n"], "properties" : { "n" : { "const" : "timeplan" }}},
31
- "then" : { "properties" : {
32
- "v" : {
33
- "$description": "designation på time plan",
34
- "$ref": "../../core/definitions.json#/integer"
35
- }
36
- }}
37
- }
38
- ]
39
- }