rsmp_schemer 0.3.2 → 0.4.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (218) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +23 -22
  3. data/lib/rsmp_schemer/version.rb +3 -3
  4. data/rsmp_schemer.gemspec +3 -3
  5. data/schemas/core_3.1.2/schema/core/alarm.json +8 -4
  6. data/schemas/core_3.1.2/spec/core/alarm_spec.rb +15 -0
  7. data/schemas/core_3.1.3/Gemfile.lock +20 -20
  8. data/schemas/core_3.1.3/schema/core/alarm.json +8 -4
  9. data/schemas/core_3.1.3/schema/core/core.json +0 -1
  10. data/schemas/core_3.1.3/schema/core/rsmp.json +0 -9
  11. data/schemas/core_3.1.3/spec/core/alarm_spec.rb +20 -7
  12. data/schemas/core_3.1.3/spec/core/command_request_spec.rb +3 -6
  13. data/schemas/core_3.1.3/spec/core/command_response_spec.rb +1 -43
  14. data/schemas/core_3.1.3/spec/core/status_request_spec.rb +4 -8
  15. data/schemas/core_3.1.3/spec/core/status_response_spec.rb +13 -8
  16. data/schemas/core_3.1.3/spec/core/status_subscribe_spec.rb +4 -8
  17. data/schemas/core_3.1.3/spec/core/status_unsubscribe_spec.rb +4 -8
  18. data/schemas/core_3.1.3/spec/core/status_update_spec.rb +4 -8
  19. data/schemas/core_3.1.3/spec/schemer_helper.rb +19 -17
  20. data/schemas/core_3.1.4/.gitignore +1 -0
  21. data/schemas/core_3.1.4/schema/core/alarm.json +8 -4
  22. data/schemas/core_3.1.4/spec/core/alarm_spec.rb +15 -0
  23. data/schemas/core_3.1.4/spec/core/version_spec.rb +3 -2
  24. data/schemas/core_3.1.5/.gitignore +1 -0
  25. data/schemas/core_3.1.5/schema/core/alarm.json +40 -41
  26. data/schemas/core_3.1.5/schema/core/alarm_issue.json +44 -0
  27. data/schemas/core_3.1.5/schema/core/alarm_suspend_resume.json +3 -0
  28. data/schemas/core_3.1.5/schema/core/alarm_suspended_resumed.json +47 -0
  29. data/schemas/core_3.1.5/schema/core/command_response.json +1 -1
  30. data/schemas/core_3.1.5/schema/core/status_response.json +1 -1
  31. data/schemas/core_3.1.5/schema/core/status_update.json +1 -1
  32. data/schemas/core_3.1.5/spec/core/alarm_issue_spec.rb +299 -0
  33. data/schemas/core_3.1.5/spec/core/alarm_resume_spec.rb +93 -0
  34. data/schemas/core_3.1.5/spec/core/alarm_resumed_spec.rb +277 -0
  35. data/schemas/core_3.1.5/spec/core/alarm_suspend_spec.rb +93 -0
  36. data/schemas/core_3.1.5/spec/core/alarm_suspended_spec.rb +277 -0
  37. data/schemas/core_3.1.5/spec/core/version_spec.rb +3 -2
  38. data/schemas/tlc_1.0.15/Gemfile.lock +17 -17
  39. data/schemas/tlc_1.0.15/README.md +7 -0
  40. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0001.json +1 -1
  41. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0002.json +1 -1
  42. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0003.json +1 -1
  43. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0004.json +1 -1
  44. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0005.json +1 -1
  45. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0006.json +1 -1
  46. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0007.json +1 -1
  47. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0008.json +1 -1
  48. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0009.json +1 -1
  49. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0010.json +1 -1
  50. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0101.json +1 -1
  51. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0201.json +1 -1
  52. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0202.json +1 -1
  53. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0301.json +1 -1
  54. data/schemas/tlc_1.0.15/schema/tlc/alarms/A0302.json +1 -1
  55. data/schemas/tlc_1.0.15/schema/tlc/commands/M0002.json +1 -1
  56. data/schemas/tlc_1.0.15/schema/tlc/commands/M0003.json +1 -1
  57. data/schemas/tlc_1.0.15/schema/tlc/commands/M0004.json +1 -1
  58. data/schemas/tlc_1.0.15/schema/tlc/commands/M0005.json +1 -1
  59. data/schemas/tlc_1.0.15/schema/tlc/commands/M0006.json +1 -1
  60. data/schemas/tlc_1.0.15/schema/tlc/commands/M0007.json +1 -1
  61. data/schemas/tlc_1.0.15/schema/tlc/commands/M0008.json +1 -1
  62. data/schemas/tlc_1.0.15/schema/tlc/commands/M0010.json +1 -1
  63. data/schemas/tlc_1.0.15/schema/tlc/commands/M0011.json +1 -1
  64. data/schemas/tlc_1.0.15/schema/tlc/commands/M0012.json +1 -1
  65. data/schemas/tlc_1.0.15/schema/tlc/commands/M0013.json +1 -1
  66. data/schemas/tlc_1.0.15/schema/tlc/commands/M0014.json +1 -1
  67. data/schemas/tlc_1.0.15/schema/tlc/commands/M0015.json +1 -1
  68. data/schemas/tlc_1.0.15/schema/tlc/commands/M0016.json +1 -1
  69. data/schemas/tlc_1.0.15/schema/tlc/commands/M0017.json +1 -1
  70. data/schemas/tlc_1.0.15/schema/tlc/commands/M0018.json +1 -1
  71. data/schemas/tlc_1.0.15/schema/tlc/commands/M0019.json +1 -1
  72. data/schemas/tlc_1.0.15/schema/tlc/commands/M0020.json +1 -1
  73. data/schemas/tlc_1.0.15/schema/tlc/commands/M0021.json +1 -1
  74. data/schemas/tlc_1.0.15/schema/tlc/commands/M0103.json +1 -1
  75. data/schemas/tlc_1.0.15/schema/tlc/commands/M0104.json +1 -1
  76. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0001.json +1 -1
  77. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0002.json +1 -1
  78. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0003.json +1 -1
  79. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0004.json +1 -1
  80. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0005.json +1 -1
  81. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0006.json +1 -1
  82. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0007.json +1 -1
  83. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0008.json +1 -1
  84. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0009.json +1 -1
  85. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0010.json +1 -1
  86. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0011.json +1 -1
  87. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0012.json +1 -1
  88. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0013.json +1 -1
  89. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0014.json +1 -1
  90. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0015.json +1 -1
  91. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0016.json +1 -1
  92. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0017.json +1 -1
  93. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0018.json +1 -1
  94. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0019.json +1 -1
  95. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0020.json +1 -1
  96. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0021.json +1 -1
  97. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0022.json +1 -1
  98. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0023.json +1 -1
  99. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0024.json +1 -1
  100. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0025.json +1 -1
  101. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0026.json +1 -1
  102. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0027.json +1 -1
  103. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0028.json +2 -2
  104. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0029.json +1 -1
  105. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0030.json +1 -1
  106. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0031.json +1 -1
  107. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0091.json +1 -1
  108. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0092.json +1 -1
  109. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0095.json +1 -1
  110. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0096.json +1 -1
  111. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0097.json +1 -1
  112. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0098.json +2 -2
  113. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0201.json +1 -1
  114. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0202.json +2 -2
  115. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0203.json +2 -2
  116. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0204.json +2 -2
  117. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0205.json +3 -3
  118. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0206.json +3 -3
  119. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0207.json +3 -3
  120. data/schemas/tlc_1.0.15/schema/tlc/statuses/S0208.json +11 -11
  121. data/schemas/tlc_1.0.15/schema/tlc/sxl.yaml +1655 -0
  122. metadata +20 -105
  123. data/schemas/core_3.1.2/examples/validate.rb +0 -35
  124. data/schemas/core_3.1.3/examples/validate.rb +0 -32
  125. data/schemas/core_3.1.3/schema/core/aggregated_status_request.json +0 -9
  126. data/schemas/core_3.1.3/schema/tlc/alarms/A0001.json +0 -7
  127. data/schemas/core_3.1.3/schema/tlc/alarms/A0002.json +0 -7
  128. data/schemas/core_3.1.3/schema/tlc/alarms/A0003.json +0 -7
  129. data/schemas/core_3.1.3/schema/tlc/alarms/A0004.json +0 -7
  130. data/schemas/core_3.1.3/schema/tlc/alarms/A0005.json +0 -7
  131. data/schemas/core_3.1.3/schema/tlc/alarms/A0006.json +0 -7
  132. data/schemas/core_3.1.3/schema/tlc/alarms/A0007.json +0 -7
  133. data/schemas/core_3.1.3/schema/tlc/alarms/A0008.json +0 -19
  134. data/schemas/core_3.1.3/schema/tlc/alarms/A0009.json +0 -7
  135. data/schemas/core_3.1.3/schema/tlc/alarms/A0101.json +0 -7
  136. data/schemas/core_3.1.3/schema/tlc/alarms/A0201.json +0 -20
  137. data/schemas/core_3.1.3/schema/tlc/alarms/A0202.json +0 -20
  138. data/schemas/core_3.1.3/schema/tlc/alarms/A0301.json +0 -49
  139. data/schemas/core_3.1.3/schema/tlc/alarms/A0302.json +0 -59
  140. data/schemas/core_3.1.3/schema/tlc/alarms/alarms.json +0 -68
  141. data/schemas/core_3.1.3/schema/tlc/commands/M0001.json +0 -48
  142. data/schemas/core_3.1.3/schema/tlc/commands/M0002.json +0 -39
  143. data/schemas/core_3.1.3/schema/tlc/commands/M0003.json +0 -39
  144. data/schemas/core_3.1.3/schema/tlc/commands/M0004.json +0 -30
  145. data/schemas/core_3.1.3/schema/tlc/commands/M0005.json +0 -39
  146. data/schemas/core_3.1.3/schema/tlc/commands/M0006.json +0 -39
  147. data/schemas/core_3.1.3/schema/tlc/commands/M0007.json +0 -30
  148. data/schemas/core_3.1.3/schema/tlc/commands/M0008.json +0 -40
  149. data/schemas/core_3.1.3/schema/tlc/commands/M0010.json +0 -30
  150. data/schemas/core_3.1.3/schema/tlc/commands/M0011.json +0 -30
  151. data/schemas/core_3.1.3/schema/tlc/commands/M0012.json +0 -29
  152. data/schemas/core_3.1.3/schema/tlc/commands/M0013.json +0 -1
  153. data/schemas/core_3.1.3/schema/tlc/commands/M0014.json +0 -38
  154. data/schemas/core_3.1.3/schema/tlc/commands/M0015.json +0 -38
  155. data/schemas/core_3.1.3/schema/tlc/commands/M0016.json +0 -29
  156. data/schemas/core_3.1.3/schema/tlc/commands/M0017.json +0 -29
  157. data/schemas/core_3.1.3/schema/tlc/commands/M0018.json +0 -38
  158. data/schemas/core_3.1.3/schema/tlc/commands/M0019.json +0 -49
  159. data/schemas/core_3.1.3/schema/tlc/commands/M0020.json +0 -49
  160. data/schemas/core_3.1.3/schema/tlc/commands/M0021.json +0 -1
  161. data/schemas/core_3.1.3/schema/tlc/commands/M0103.json +0 -39
  162. data/schemas/core_3.1.3/schema/tlc/commands/M0104.json +0 -1
  163. data/schemas/core_3.1.3/schema/tlc/commands/command_requests.json +0 -7
  164. data/schemas/core_3.1.3/schema/tlc/commands/command_responses.json +0 -7
  165. data/schemas/core_3.1.3/schema/tlc/commands/commands.json +0 -97
  166. data/schemas/core_3.1.3/schema/tlc/statuses/S0001.json +0 -45
  167. data/schemas/core_3.1.3/schema/tlc/statuses/S0002.json +0 -17
  168. data/schemas/core_3.1.3/schema/tlc/statuses/S0003.json +0 -26
  169. data/schemas/core_3.1.3/schema/tlc/statuses/S0004.json +0 -26
  170. data/schemas/core_3.1.3/schema/tlc/statuses/S0005.json +0 -18
  171. data/schemas/core_3.1.3/schema/tlc/statuses/S0006.json +0 -27
  172. data/schemas/core_3.1.3/schema/tlc/statuses/S0007.json +0 -26
  173. data/schemas/core_3.1.3/schema/tlc/statuses/S0008.json +0 -26
  174. data/schemas/core_3.1.3/schema/tlc/statuses/S0009.json +0 -26
  175. data/schemas/core_3.1.3/schema/tlc/statuses/S0010.json +0 -26
  176. data/schemas/core_3.1.3/schema/tlc/statuses/S0011.json +0 -26
  177. data/schemas/core_3.1.3/schema/tlc/statuses/S0012.json +0 -26
  178. data/schemas/core_3.1.3/schema/tlc/statuses/S0013.json +0 -27
  179. data/schemas/core_3.1.3/schema/tlc/statuses/S0014.json +0 -17
  180. data/schemas/core_3.1.3/schema/tlc/statuses/S0015.json +0 -17
  181. data/schemas/core_3.1.3/schema/tlc/statuses/S0016.json +0 -17
  182. data/schemas/core_3.1.3/schema/tlc/statuses/S0017.json +0 -17
  183. data/schemas/core_3.1.3/schema/tlc/statuses/S0018.json +0 -17
  184. data/schemas/core_3.1.3/schema/tlc/statuses/S0019.json +0 -17
  185. data/schemas/core_3.1.3/schema/tlc/statuses/S0020.json +0 -27
  186. data/schemas/core_3.1.3/schema/tlc/statuses/S0021.json +0 -18
  187. data/schemas/core_3.1.3/schema/tlc/statuses/S0022.json +0 -17
  188. data/schemas/core_3.1.3/schema/tlc/statuses/S0023.json +0 -18
  189. data/schemas/core_3.1.3/schema/tlc/statuses/S0024.json +0 -18
  190. data/schemas/core_3.1.3/schema/tlc/statuses/S0025.json +0 -80
  191. data/schemas/core_3.1.3/schema/tlc/statuses/S0026.json +0 -18
  192. data/schemas/core_3.1.3/schema/tlc/statuses/S0027.json +0 -18
  193. data/schemas/core_3.1.3/schema/tlc/statuses/S0028.json +0 -18
  194. data/schemas/core_3.1.3/schema/tlc/statuses/S0029.json +0 -17
  195. data/schemas/core_3.1.3/schema/tlc/statuses/S0030.json +0 -1
  196. data/schemas/core_3.1.3/schema/tlc/statuses/S0031.json +0 -1
  197. data/schemas/core_3.1.3/schema/tlc/statuses/S0091.json +0 -27
  198. data/schemas/core_3.1.3/schema/tlc/statuses/S0092.json +0 -27
  199. data/schemas/core_3.1.3/schema/tlc/statuses/S0095.json +0 -17
  200. data/schemas/core_3.1.3/schema/tlc/statuses/S0096.json +0 -68
  201. data/schemas/core_3.1.3/schema/tlc/statuses/S0097.json +0 -26
  202. data/schemas/core_3.1.3/schema/tlc/statuses/S0201.json +0 -26
  203. data/schemas/core_3.1.3/schema/tlc/statuses/S0202.json +0 -26
  204. data/schemas/core_3.1.3/schema/tlc/statuses/S0203.json +0 -26
  205. data/schemas/core_3.1.3/schema/tlc/statuses/S0204.json +0 -98
  206. data/schemas/core_3.1.3/schema/tlc/statuses/S0205.json +0 -26
  207. data/schemas/core_3.1.3/schema/tlc/statuses/S0206.json +0 -26
  208. data/schemas/core_3.1.3/schema/tlc/statuses/S0207.json +0 -26
  209. data/schemas/core_3.1.3/schema/tlc/statuses/S0208.json +0 -98
  210. data/schemas/core_3.1.3/schema/tlc/statuses/statuses.json +0 -181
  211. data/schemas/core_3.1.3/schema/tlc/sxl.json +0 -24
  212. data/schemas/core_3.1.3/spec/tlc/M0001_spec.rb +0 -67
  213. data/schemas/core_3.1.3/spec/tlc/S0007_spec.rb +0 -233
  214. data/schemas/core_3.1.4/examples/validate.rb +0 -35
  215. data/schemas/core_3.1.4/spec/core/alarm_request_spec.rb +0 -72
  216. data/schemas/core_3.1.5/examples/validate.rb +0 -35
  217. data/schemas/core_3.1.5/spec/core/alarm_request_spec.rb +0 -72
  218. data/schemas/core_3.1.5/spec/core/alarm_spec.rb +0 -298
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.3.2
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: 2021-11-17 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
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.18
19
+ version: 0.2.21
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.18
26
+ version: 0.2.21
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
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
@@ -95,7 +95,6 @@ files:
95
95
  - schemas/core_3.1.2/Gemfile.lock
96
96
  - schemas/core_3.1.2/LICENSE
97
97
  - schemas/core_3.1.2/README.md
98
- - schemas/core_3.1.2/examples/validate.rb
99
98
  - schemas/core_3.1.2/schema/core/aggregated_status.json
100
99
  - schemas/core_3.1.2/schema/core/alarm.json
101
100
  - schemas/core_3.1.2/schema/core/command_request.json
@@ -134,9 +133,7 @@ files:
134
133
  - schemas/core_3.1.3/Gemfile.lock
135
134
  - schemas/core_3.1.3/LICENSE
136
135
  - schemas/core_3.1.3/README.md
137
- - schemas/core_3.1.3/examples/validate.rb
138
136
  - schemas/core_3.1.3/schema/core/aggregated_status.json
139
- - schemas/core_3.1.3/schema/core/aggregated_status_request.json
140
137
  - schemas/core_3.1.3/schema/core/alarm.json
141
138
  - schemas/core_3.1.3/schema/core/command_request.json
142
139
  - schemas/core_3.1.3/schema/core/command_response.json
@@ -153,92 +150,6 @@ files:
153
150
  - schemas/core_3.1.3/schema/core/status_update.json
154
151
  - schemas/core_3.1.3/schema/core/version.json
155
152
  - schemas/core_3.1.3/schema/core/watchdog.json
156
- - schemas/core_3.1.3/schema/tlc/alarms/A0001.json
157
- - schemas/core_3.1.3/schema/tlc/alarms/A0002.json
158
- - schemas/core_3.1.3/schema/tlc/alarms/A0003.json
159
- - schemas/core_3.1.3/schema/tlc/alarms/A0004.json
160
- - schemas/core_3.1.3/schema/tlc/alarms/A0005.json
161
- - schemas/core_3.1.3/schema/tlc/alarms/A0006.json
162
- - schemas/core_3.1.3/schema/tlc/alarms/A0007.json
163
- - schemas/core_3.1.3/schema/tlc/alarms/A0008.json
164
- - schemas/core_3.1.3/schema/tlc/alarms/A0009.json
165
- - schemas/core_3.1.3/schema/tlc/alarms/A0101.json
166
- - schemas/core_3.1.3/schema/tlc/alarms/A0201.json
167
- - schemas/core_3.1.3/schema/tlc/alarms/A0202.json
168
- - schemas/core_3.1.3/schema/tlc/alarms/A0301.json
169
- - schemas/core_3.1.3/schema/tlc/alarms/A0302.json
170
- - schemas/core_3.1.3/schema/tlc/alarms/alarms.json
171
- - schemas/core_3.1.3/schema/tlc/commands/M0001.json
172
- - schemas/core_3.1.3/schema/tlc/commands/M0002.json
173
- - schemas/core_3.1.3/schema/tlc/commands/M0003.json
174
- - schemas/core_3.1.3/schema/tlc/commands/M0004.json
175
- - schemas/core_3.1.3/schema/tlc/commands/M0005.json
176
- - schemas/core_3.1.3/schema/tlc/commands/M0006.json
177
- - schemas/core_3.1.3/schema/tlc/commands/M0007.json
178
- - schemas/core_3.1.3/schema/tlc/commands/M0008.json
179
- - schemas/core_3.1.3/schema/tlc/commands/M0010.json
180
- - schemas/core_3.1.3/schema/tlc/commands/M0011.json
181
- - schemas/core_3.1.3/schema/tlc/commands/M0012.json
182
- - schemas/core_3.1.3/schema/tlc/commands/M0013.json
183
- - schemas/core_3.1.3/schema/tlc/commands/M0014.json
184
- - schemas/core_3.1.3/schema/tlc/commands/M0015.json
185
- - schemas/core_3.1.3/schema/tlc/commands/M0016.json
186
- - schemas/core_3.1.3/schema/tlc/commands/M0017.json
187
- - schemas/core_3.1.3/schema/tlc/commands/M0018.json
188
- - schemas/core_3.1.3/schema/tlc/commands/M0019.json
189
- - schemas/core_3.1.3/schema/tlc/commands/M0020.json
190
- - schemas/core_3.1.3/schema/tlc/commands/M0021.json
191
- - schemas/core_3.1.3/schema/tlc/commands/M0103.json
192
- - schemas/core_3.1.3/schema/tlc/commands/M0104.json
193
- - schemas/core_3.1.3/schema/tlc/commands/command_requests.json
194
- - schemas/core_3.1.3/schema/tlc/commands/command_responses.json
195
- - schemas/core_3.1.3/schema/tlc/commands/commands.json
196
- - schemas/core_3.1.3/schema/tlc/statuses/S0001.json
197
- - schemas/core_3.1.3/schema/tlc/statuses/S0002.json
198
- - schemas/core_3.1.3/schema/tlc/statuses/S0003.json
199
- - schemas/core_3.1.3/schema/tlc/statuses/S0004.json
200
- - schemas/core_3.1.3/schema/tlc/statuses/S0005.json
201
- - schemas/core_3.1.3/schema/tlc/statuses/S0006.json
202
- - schemas/core_3.1.3/schema/tlc/statuses/S0007.json
203
- - schemas/core_3.1.3/schema/tlc/statuses/S0008.json
204
- - schemas/core_3.1.3/schema/tlc/statuses/S0009.json
205
- - schemas/core_3.1.3/schema/tlc/statuses/S0010.json
206
- - schemas/core_3.1.3/schema/tlc/statuses/S0011.json
207
- - schemas/core_3.1.3/schema/tlc/statuses/S0012.json
208
- - schemas/core_3.1.3/schema/tlc/statuses/S0013.json
209
- - schemas/core_3.1.3/schema/tlc/statuses/S0014.json
210
- - schemas/core_3.1.3/schema/tlc/statuses/S0015.json
211
- - schemas/core_3.1.3/schema/tlc/statuses/S0016.json
212
- - schemas/core_3.1.3/schema/tlc/statuses/S0017.json
213
- - schemas/core_3.1.3/schema/tlc/statuses/S0018.json
214
- - schemas/core_3.1.3/schema/tlc/statuses/S0019.json
215
- - schemas/core_3.1.3/schema/tlc/statuses/S0020.json
216
- - schemas/core_3.1.3/schema/tlc/statuses/S0021.json
217
- - schemas/core_3.1.3/schema/tlc/statuses/S0022.json
218
- - schemas/core_3.1.3/schema/tlc/statuses/S0023.json
219
- - schemas/core_3.1.3/schema/tlc/statuses/S0024.json
220
- - schemas/core_3.1.3/schema/tlc/statuses/S0025.json
221
- - schemas/core_3.1.3/schema/tlc/statuses/S0026.json
222
- - schemas/core_3.1.3/schema/tlc/statuses/S0027.json
223
- - schemas/core_3.1.3/schema/tlc/statuses/S0028.json
224
- - schemas/core_3.1.3/schema/tlc/statuses/S0029.json
225
- - schemas/core_3.1.3/schema/tlc/statuses/S0030.json
226
- - schemas/core_3.1.3/schema/tlc/statuses/S0031.json
227
- - schemas/core_3.1.3/schema/tlc/statuses/S0091.json
228
- - schemas/core_3.1.3/schema/tlc/statuses/S0092.json
229
- - schemas/core_3.1.3/schema/tlc/statuses/S0095.json
230
- - schemas/core_3.1.3/schema/tlc/statuses/S0096.json
231
- - schemas/core_3.1.3/schema/tlc/statuses/S0097.json
232
- - schemas/core_3.1.3/schema/tlc/statuses/S0201.json
233
- - schemas/core_3.1.3/schema/tlc/statuses/S0202.json
234
- - schemas/core_3.1.3/schema/tlc/statuses/S0203.json
235
- - schemas/core_3.1.3/schema/tlc/statuses/S0204.json
236
- - schemas/core_3.1.3/schema/tlc/statuses/S0205.json
237
- - schemas/core_3.1.3/schema/tlc/statuses/S0206.json
238
- - schemas/core_3.1.3/schema/tlc/statuses/S0207.json
239
- - schemas/core_3.1.3/schema/tlc/statuses/S0208.json
240
- - schemas/core_3.1.3/schema/tlc/statuses/statuses.json
241
- - schemas/core_3.1.3/schema/tlc/sxl.json
242
153
  - schemas/core_3.1.3/spec/core/aggregated_status_spec.rb
243
154
  - schemas/core_3.1.3/spec/core/alarm_spec.rb
244
155
  - schemas/core_3.1.3/spec/core/command_request_spec.rb
@@ -255,14 +166,12 @@ files:
255
166
  - schemas/core_3.1.3/spec/core/watchdog_spec.rb
256
167
  - schemas/core_3.1.3/spec/schemer_helper.rb
257
168
  - schemas/core_3.1.3/spec/spec_helper.rb
258
- - schemas/core_3.1.3/spec/tlc/M0001_spec.rb
259
- - schemas/core_3.1.3/spec/tlc/S0007_spec.rb
169
+ - schemas/core_3.1.4/.gitignore
260
170
  - schemas/core_3.1.4/.rspec
261
171
  - schemas/core_3.1.4/Gemfile
262
172
  - schemas/core_3.1.4/Gemfile.lock
263
173
  - schemas/core_3.1.4/LICENSE
264
174
  - schemas/core_3.1.4/README.md
265
- - schemas/core_3.1.4/examples/validate.rb
266
175
  - schemas/core_3.1.4/schema/core/aggregated_status.json
267
176
  - schemas/core_3.1.4/schema/core/alarm.json
268
177
  - schemas/core_3.1.4/schema/core/command_request.json
@@ -281,7 +190,6 @@ files:
281
190
  - schemas/core_3.1.4/schema/core/version.json
282
191
  - schemas/core_3.1.4/schema/core/watchdog.json
283
192
  - schemas/core_3.1.4/spec/core/aggregated_status_spec.rb
284
- - schemas/core_3.1.4/spec/core/alarm_request_spec.rb
285
193
  - schemas/core_3.1.4/spec/core/alarm_spec.rb
286
194
  - schemas/core_3.1.4/spec/core/command_request_spec.rb
287
195
  - schemas/core_3.1.4/spec/core/command_response_spec.rb
@@ -297,15 +205,18 @@ files:
297
205
  - schemas/core_3.1.4/spec/core/watchdog_spec.rb
298
206
  - schemas/core_3.1.4/spec/schemer_helper.rb
299
207
  - schemas/core_3.1.4/spec/spec_helper.rb
208
+ - schemas/core_3.1.5/.gitignore
300
209
  - schemas/core_3.1.5/.rspec
301
210
  - schemas/core_3.1.5/Gemfile
302
211
  - schemas/core_3.1.5/Gemfile.lock
303
212
  - schemas/core_3.1.5/LICENSE
304
213
  - schemas/core_3.1.5/README.md
305
- - schemas/core_3.1.5/examples/validate.rb
306
214
  - schemas/core_3.1.5/schema/core/aggregated_status.json
307
215
  - schemas/core_3.1.5/schema/core/aggregated_status_request.json
308
216
  - schemas/core_3.1.5/schema/core/alarm.json
217
+ - schemas/core_3.1.5/schema/core/alarm_issue.json
218
+ - schemas/core_3.1.5/schema/core/alarm_suspend_resume.json
219
+ - schemas/core_3.1.5/schema/core/alarm_suspended_resumed.json
309
220
  - schemas/core_3.1.5/schema/core/command_request.json
310
221
  - schemas/core_3.1.5/schema/core/command_response.json
311
222
  - schemas/core_3.1.5/schema/core/core.json
@@ -322,8 +233,11 @@ files:
322
233
  - schemas/core_3.1.5/schema/core/version.json
323
234
  - schemas/core_3.1.5/schema/core/watchdog.json
324
235
  - schemas/core_3.1.5/spec/core/aggregated_status_spec.rb
325
- - schemas/core_3.1.5/spec/core/alarm_request_spec.rb
326
- - schemas/core_3.1.5/spec/core/alarm_spec.rb
236
+ - schemas/core_3.1.5/spec/core/alarm_issue_spec.rb
237
+ - schemas/core_3.1.5/spec/core/alarm_resume_spec.rb
238
+ - schemas/core_3.1.5/spec/core/alarm_resumed_spec.rb
239
+ - schemas/core_3.1.5/spec/core/alarm_suspend_spec.rb
240
+ - schemas/core_3.1.5/spec/core/alarm_suspended_spec.rb
327
241
  - schemas/core_3.1.5/spec/core/command_request_spec.rb
328
242
  - schemas/core_3.1.5/spec/core/command_response_spec.rb
329
243
  - schemas/core_3.1.5/spec/core/core_spec.rb
@@ -690,6 +604,7 @@ files:
690
604
  - schemas/tlc_1.0.15/schema/tlc/statuses/S0208.json
691
605
  - schemas/tlc_1.0.15/schema/tlc/statuses/statuses.json
692
606
  - schemas/tlc_1.0.15/schema/tlc/sxl.json
607
+ - schemas/tlc_1.0.15/schema/tlc/sxl.yaml
693
608
  - schemas/tlc_1.0.15/spec/schemer_helper.rb
694
609
  - schemas/tlc_1.0.15/spec/spec_helper.rb
695
610
  - schemas/tlc_1.0.15/spec/tlc/M0001_spec.rb
@@ -939,7 +854,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
939
854
  - !ruby/object:Gem::Version
940
855
  version: '0'
941
856
  requirements: []
942
- rubygems_version: 3.2.15
857
+ rubygems_version: 3.3.7
943
858
  signing_key:
944
859
  specification_version: 4
945
860
  summary: Validate RSMP message against RSMP JSON Schema.
@@ -1,35 +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
- "n" => "timeplan",
14
- "cO" => "setPlan",
15
- "v" => "1"
16
- }
17
- ]
18
- }
19
-
20
- # try validating a message against our schema
21
- schema_core = Pathname.new('schema/core/rsmp.json')
22
- schemer_core = JSONSchemer.schema(schema_core)
23
-
24
- def validate message, schemer
25
- if schemer.valid? message
26
- 'ok'
27
- else
28
- schemer.validate(message).map do |item|
29
- [item['data_pointer'],item['type'],item['details']].compact.join(' ')
30
- end
31
- end
32
- end
33
-
34
- puts "core: #{validate message, schemer_core}"
35
-
@@ -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
- }