rsmp_schema 0.4.3 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (556) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/lib/rsmp_schema/convert/export/json_schema.rb +34 -11
  4. data/lib/rsmp_schema/version.rb +1 -1
  5. data/schemas/core/3.1.2/status_response.json +2 -2
  6. data/schemas/core/3.1.3/status_response.json +27 -12
  7. data/schemas/core/3.2/status_response.json +27 -12
  8. data/schemas/tlc/1.0.10/alarms/A0001.json +1 -5
  9. data/schemas/tlc/1.0.10/alarms/A0002.json +1 -5
  10. data/schemas/tlc/1.0.10/alarms/A0003.json +1 -5
  11. data/schemas/tlc/1.0.10/alarms/A0004.json +1 -5
  12. data/schemas/tlc/1.0.10/alarms/A0005.json +1 -5
  13. data/schemas/tlc/1.0.10/alarms/A0006.json +1 -5
  14. data/schemas/tlc/1.0.10/alarms/A0007.json +1 -5
  15. data/schemas/tlc/1.0.10/alarms/A0008.json +35 -14
  16. data/schemas/tlc/1.0.10/alarms/A0009.json +1 -5
  17. data/schemas/tlc/1.0.10/alarms/A0101.json +1 -5
  18. data/schemas/tlc/1.0.10/alarms/A0201.json +35 -14
  19. data/schemas/tlc/1.0.10/alarms/A0202.json +35 -14
  20. data/schemas/tlc/1.0.10/alarms/A0301.json +101 -80
  21. data/schemas/tlc/1.0.10/alarms/A0302.json +126 -105
  22. data/schemas/tlc/1.0.10/commands/M0001.json +108 -87
  23. data/schemas/tlc/1.0.10/commands/M0002.json +79 -58
  24. data/schemas/tlc/1.0.10/commands/M0003.json +79 -58
  25. data/schemas/tlc/1.0.10/commands/M0004.json +54 -33
  26. data/schemas/tlc/1.0.10/commands/M0005.json +79 -58
  27. data/schemas/tlc/1.0.10/commands/M0006.json +79 -58
  28. data/schemas/tlc/1.0.10/commands/M0007.json +54 -33
  29. data/schemas/tlc/1.0.10/commands/M0008.json +79 -58
  30. data/schemas/tlc/1.0.10/commands/M0010.json +54 -33
  31. data/schemas/tlc/1.0.10/commands/M0011.json +54 -33
  32. data/schemas/tlc/1.0.10/commands/M0012.json +48 -27
  33. data/schemas/tlc/1.0.10/commands/M0013.json +48 -27
  34. data/schemas/tlc/1.0.10/commands/M0019.json +104 -83
  35. data/schemas/tlc/1.0.10/commands/M0103.json +71 -50
  36. data/schemas/tlc/1.0.10/commands/M0104.json +178 -157
  37. data/schemas/tlc/1.0.10/statuses/S0001.json +104 -83
  38. data/schemas/tlc/1.0.10/statuses/S0002.json +30 -9
  39. data/schemas/tlc/1.0.10/statuses/S0003.json +48 -27
  40. data/schemas/tlc/1.0.10/statuses/S0004.json +48 -27
  41. data/schemas/tlc/1.0.10/statuses/S0005.json +35 -14
  42. data/schemas/tlc/1.0.10/statuses/S0006.json +59 -38
  43. data/schemas/tlc/1.0.10/statuses/S0007.json +59 -38
  44. data/schemas/tlc/1.0.10/statuses/S0008.json +59 -38
  45. data/schemas/tlc/1.0.10/statuses/S0009.json +59 -38
  46. data/schemas/tlc/1.0.10/statuses/S0010.json +59 -38
  47. data/schemas/tlc/1.0.10/statuses/S0011.json +59 -38
  48. data/schemas/tlc/1.0.10/statuses/S0012.json +59 -38
  49. data/schemas/tlc/1.0.10/statuses/S0013.json +59 -38
  50. data/schemas/tlc/1.0.10/statuses/S0014.json +35 -14
  51. data/schemas/tlc/1.0.10/statuses/S0015.json +35 -14
  52. data/schemas/tlc/1.0.10/statuses/S0016.json +35 -14
  53. data/schemas/tlc/1.0.10/statuses/S0017.json +35 -14
  54. data/schemas/tlc/1.0.10/statuses/S0018.json +35 -14
  55. data/schemas/tlc/1.0.10/statuses/S0019.json +35 -14
  56. data/schemas/tlc/1.0.10/statuses/S0020.json +59 -38
  57. data/schemas/tlc/1.0.10/statuses/S0021.json +31 -10
  58. data/schemas/tlc/1.0.10/statuses/S0091.json +51 -30
  59. data/schemas/tlc/1.0.10/statuses/S0092.json +51 -30
  60. data/schemas/tlc/1.0.10/statuses/S0095.json +30 -9
  61. data/schemas/tlc/1.0.10/statuses/S0096.json +159 -138
  62. data/schemas/tlc/1.0.10/statuses/S0201.json +59 -38
  63. data/schemas/tlc/1.0.10/statuses/S0202.json +59 -38
  64. data/schemas/tlc/1.0.10/statuses/S0203.json +59 -38
  65. data/schemas/tlc/1.0.10/statuses/S0204.json +259 -238
  66. data/schemas/tlc/1.0.13/alarms/A0001.json +1 -5
  67. data/schemas/tlc/1.0.13/alarms/A0002.json +1 -5
  68. data/schemas/tlc/1.0.13/alarms/A0003.json +1 -5
  69. data/schemas/tlc/1.0.13/alarms/A0004.json +1 -5
  70. data/schemas/tlc/1.0.13/alarms/A0005.json +1 -5
  71. data/schemas/tlc/1.0.13/alarms/A0006.json +1 -5
  72. data/schemas/tlc/1.0.13/alarms/A0007.json +1 -5
  73. data/schemas/tlc/1.0.13/alarms/A0008.json +35 -14
  74. data/schemas/tlc/1.0.13/alarms/A0009.json +1 -5
  75. data/schemas/tlc/1.0.13/alarms/A0101.json +1 -5
  76. data/schemas/tlc/1.0.13/alarms/A0201.json +35 -14
  77. data/schemas/tlc/1.0.13/alarms/A0202.json +35 -14
  78. data/schemas/tlc/1.0.13/alarms/A0301.json +101 -80
  79. data/schemas/tlc/1.0.13/alarms/A0302.json +126 -105
  80. data/schemas/tlc/1.0.13/commands/M0001.json +108 -87
  81. data/schemas/tlc/1.0.13/commands/M0002.json +79 -58
  82. data/schemas/tlc/1.0.13/commands/M0003.json +79 -58
  83. data/schemas/tlc/1.0.13/commands/M0004.json +54 -33
  84. data/schemas/tlc/1.0.13/commands/M0005.json +79 -58
  85. data/schemas/tlc/1.0.13/commands/M0006.json +79 -58
  86. data/schemas/tlc/1.0.13/commands/M0007.json +54 -33
  87. data/schemas/tlc/1.0.13/commands/M0008.json +79 -58
  88. data/schemas/tlc/1.0.13/commands/M0010.json +54 -33
  89. data/schemas/tlc/1.0.13/commands/M0011.json +54 -33
  90. data/schemas/tlc/1.0.13/commands/M0012.json +48 -27
  91. data/schemas/tlc/1.0.13/commands/M0013.json +48 -27
  92. data/schemas/tlc/1.0.13/commands/M0014.json +74 -53
  93. data/schemas/tlc/1.0.13/commands/M0015.json +79 -58
  94. data/schemas/tlc/1.0.13/commands/M0016.json +48 -27
  95. data/schemas/tlc/1.0.13/commands/M0017.json +48 -27
  96. data/schemas/tlc/1.0.13/commands/M0018.json +79 -58
  97. data/schemas/tlc/1.0.13/commands/M0019.json +104 -83
  98. data/schemas/tlc/1.0.13/commands/M0103.json +71 -50
  99. data/schemas/tlc/1.0.13/commands/M0104.json +178 -157
  100. data/schemas/tlc/1.0.13/statuses/S0001.json +104 -83
  101. data/schemas/tlc/1.0.13/statuses/S0002.json +30 -9
  102. data/schemas/tlc/1.0.13/statuses/S0003.json +48 -27
  103. data/schemas/tlc/1.0.13/statuses/S0004.json +48 -27
  104. data/schemas/tlc/1.0.13/statuses/S0005.json +35 -14
  105. data/schemas/tlc/1.0.13/statuses/S0006.json +59 -38
  106. data/schemas/tlc/1.0.13/statuses/S0007.json +59 -38
  107. data/schemas/tlc/1.0.13/statuses/S0008.json +59 -38
  108. data/schemas/tlc/1.0.13/statuses/S0009.json +59 -38
  109. data/schemas/tlc/1.0.13/statuses/S0010.json +59 -38
  110. data/schemas/tlc/1.0.13/statuses/S0011.json +59 -38
  111. data/schemas/tlc/1.0.13/statuses/S0012.json +59 -38
  112. data/schemas/tlc/1.0.13/statuses/S0013.json +59 -38
  113. data/schemas/tlc/1.0.13/statuses/S0014.json +35 -14
  114. data/schemas/tlc/1.0.13/statuses/S0015.json +35 -14
  115. data/schemas/tlc/1.0.13/statuses/S0016.json +35 -14
  116. data/schemas/tlc/1.0.13/statuses/S0017.json +35 -14
  117. data/schemas/tlc/1.0.13/statuses/S0018.json +35 -14
  118. data/schemas/tlc/1.0.13/statuses/S0019.json +35 -14
  119. data/schemas/tlc/1.0.13/statuses/S0020.json +59 -38
  120. data/schemas/tlc/1.0.13/statuses/S0021.json +31 -10
  121. data/schemas/tlc/1.0.13/statuses/S0022.json +30 -9
  122. data/schemas/tlc/1.0.13/statuses/S0023.json +31 -10
  123. data/schemas/tlc/1.0.13/statuses/S0024.json +31 -10
  124. data/schemas/tlc/1.0.13/statuses/S0025.json +216 -195
  125. data/schemas/tlc/1.0.13/statuses/S0026.json +30 -9
  126. data/schemas/tlc/1.0.13/statuses/S0027.json +30 -9
  127. data/schemas/tlc/1.0.13/statuses/S0028.json +30 -9
  128. data/schemas/tlc/1.0.13/statuses/S0029.json +30 -9
  129. data/schemas/tlc/1.0.13/statuses/S0091.json +51 -30
  130. data/schemas/tlc/1.0.13/statuses/S0092.json +51 -30
  131. data/schemas/tlc/1.0.13/statuses/S0095.json +30 -9
  132. data/schemas/tlc/1.0.13/statuses/S0096.json +159 -138
  133. data/schemas/tlc/1.0.13/statuses/S0201.json +59 -38
  134. data/schemas/tlc/1.0.13/statuses/S0202.json +59 -38
  135. data/schemas/tlc/1.0.13/statuses/S0203.json +59 -38
  136. data/schemas/tlc/1.0.13/statuses/S0204.json +259 -238
  137. data/schemas/tlc/1.0.14/alarms/A0001.json +1 -5
  138. data/schemas/tlc/1.0.14/alarms/A0002.json +1 -5
  139. data/schemas/tlc/1.0.14/alarms/A0003.json +1 -5
  140. data/schemas/tlc/1.0.14/alarms/A0004.json +1 -5
  141. data/schemas/tlc/1.0.14/alarms/A0005.json +1 -5
  142. data/schemas/tlc/1.0.14/alarms/A0006.json +1 -5
  143. data/schemas/tlc/1.0.14/alarms/A0007.json +1 -5
  144. data/schemas/tlc/1.0.14/alarms/A0008.json +35 -14
  145. data/schemas/tlc/1.0.14/alarms/A0009.json +1 -5
  146. data/schemas/tlc/1.0.14/alarms/A0101.json +1 -5
  147. data/schemas/tlc/1.0.14/alarms/A0201.json +35 -14
  148. data/schemas/tlc/1.0.14/alarms/A0202.json +35 -14
  149. data/schemas/tlc/1.0.14/alarms/A0301.json +101 -80
  150. data/schemas/tlc/1.0.14/alarms/A0302.json +126 -105
  151. data/schemas/tlc/1.0.14/commands/M0001.json +108 -87
  152. data/schemas/tlc/1.0.14/commands/M0002.json +79 -58
  153. data/schemas/tlc/1.0.14/commands/M0003.json +79 -58
  154. data/schemas/tlc/1.0.14/commands/M0004.json +54 -33
  155. data/schemas/tlc/1.0.14/commands/M0005.json +79 -58
  156. data/schemas/tlc/1.0.14/commands/M0006.json +79 -58
  157. data/schemas/tlc/1.0.14/commands/M0007.json +54 -33
  158. data/schemas/tlc/1.0.14/commands/M0008.json +79 -58
  159. data/schemas/tlc/1.0.14/commands/M0010.json +54 -33
  160. data/schemas/tlc/1.0.14/commands/M0011.json +54 -33
  161. data/schemas/tlc/1.0.14/commands/M0012.json +48 -27
  162. data/schemas/tlc/1.0.14/commands/M0013.json +48 -27
  163. data/schemas/tlc/1.0.14/commands/M0014.json +74 -53
  164. data/schemas/tlc/1.0.14/commands/M0015.json +79 -58
  165. data/schemas/tlc/1.0.14/commands/M0016.json +48 -27
  166. data/schemas/tlc/1.0.14/commands/M0017.json +48 -27
  167. data/schemas/tlc/1.0.14/commands/M0018.json +79 -58
  168. data/schemas/tlc/1.0.14/commands/M0019.json +104 -83
  169. data/schemas/tlc/1.0.14/commands/M0103.json +71 -50
  170. data/schemas/tlc/1.0.14/commands/M0104.json +178 -157
  171. data/schemas/tlc/1.0.14/statuses/S0001.json +104 -83
  172. data/schemas/tlc/1.0.14/statuses/S0002.json +30 -9
  173. data/schemas/tlc/1.0.14/statuses/S0003.json +48 -27
  174. data/schemas/tlc/1.0.14/statuses/S0004.json +48 -27
  175. data/schemas/tlc/1.0.14/statuses/S0005.json +35 -14
  176. data/schemas/tlc/1.0.14/statuses/S0006.json +59 -38
  177. data/schemas/tlc/1.0.14/statuses/S0007.json +59 -38
  178. data/schemas/tlc/1.0.14/statuses/S0008.json +59 -38
  179. data/schemas/tlc/1.0.14/statuses/S0009.json +59 -38
  180. data/schemas/tlc/1.0.14/statuses/S0010.json +59 -38
  181. data/schemas/tlc/1.0.14/statuses/S0011.json +59 -38
  182. data/schemas/tlc/1.0.14/statuses/S0012.json +59 -38
  183. data/schemas/tlc/1.0.14/statuses/S0013.json +59 -38
  184. data/schemas/tlc/1.0.14/statuses/S0014.json +35 -14
  185. data/schemas/tlc/1.0.14/statuses/S0015.json +35 -14
  186. data/schemas/tlc/1.0.14/statuses/S0016.json +35 -14
  187. data/schemas/tlc/1.0.14/statuses/S0017.json +35 -14
  188. data/schemas/tlc/1.0.14/statuses/S0018.json +35 -14
  189. data/schemas/tlc/1.0.14/statuses/S0019.json +35 -14
  190. data/schemas/tlc/1.0.14/statuses/S0020.json +59 -38
  191. data/schemas/tlc/1.0.14/statuses/S0021.json +31 -10
  192. data/schemas/tlc/1.0.14/statuses/S0022.json +30 -9
  193. data/schemas/tlc/1.0.14/statuses/S0023.json +31 -10
  194. data/schemas/tlc/1.0.14/statuses/S0024.json +31 -10
  195. data/schemas/tlc/1.0.14/statuses/S0025.json +216 -195
  196. data/schemas/tlc/1.0.14/statuses/S0026.json +30 -9
  197. data/schemas/tlc/1.0.14/statuses/S0027.json +30 -9
  198. data/schemas/tlc/1.0.14/statuses/S0028.json +30 -9
  199. data/schemas/tlc/1.0.14/statuses/S0029.json +30 -9
  200. data/schemas/tlc/1.0.14/statuses/S0091.json +51 -30
  201. data/schemas/tlc/1.0.14/statuses/S0092.json +51 -30
  202. data/schemas/tlc/1.0.14/statuses/S0095.json +30 -9
  203. data/schemas/tlc/1.0.14/statuses/S0096.json +159 -138
  204. data/schemas/tlc/1.0.14/statuses/S0201.json +59 -38
  205. data/schemas/tlc/1.0.14/statuses/S0202.json +59 -38
  206. data/schemas/tlc/1.0.14/statuses/S0203.json +59 -38
  207. data/schemas/tlc/1.0.14/statuses/S0204.json +259 -238
  208. data/schemas/tlc/1.0.14/statuses/S0205.json +54 -33
  209. data/schemas/tlc/1.0.14/statuses/S0206.json +54 -33
  210. data/schemas/tlc/1.0.14/statuses/S0207.json +54 -33
  211. data/schemas/tlc/1.0.14/statuses/S0208.json +214 -193
  212. data/schemas/tlc/1.0.15/alarms/A0001.json +1 -5
  213. data/schemas/tlc/1.0.15/alarms/A0002.json +1 -5
  214. data/schemas/tlc/1.0.15/alarms/A0003.json +1 -5
  215. data/schemas/tlc/1.0.15/alarms/A0004.json +1 -5
  216. data/schemas/tlc/1.0.15/alarms/A0005.json +1 -5
  217. data/schemas/tlc/1.0.15/alarms/A0006.json +1 -5
  218. data/schemas/tlc/1.0.15/alarms/A0007.json +1 -5
  219. data/schemas/tlc/1.0.15/alarms/A0008.json +35 -14
  220. data/schemas/tlc/1.0.15/alarms/A0009.json +1 -5
  221. data/schemas/tlc/1.0.15/alarms/A0010.json +1 -5
  222. data/schemas/tlc/1.0.15/alarms/A0101.json +1 -5
  223. data/schemas/tlc/1.0.15/alarms/A0201.json +35 -14
  224. data/schemas/tlc/1.0.15/alarms/A0202.json +35 -14
  225. data/schemas/tlc/1.0.15/alarms/A0301.json +101 -80
  226. data/schemas/tlc/1.0.15/alarms/A0302.json +126 -105
  227. data/schemas/tlc/1.0.15/commands/M0001.json +108 -87
  228. data/schemas/tlc/1.0.15/commands/M0002.json +79 -58
  229. data/schemas/tlc/1.0.15/commands/M0003.json +79 -58
  230. data/schemas/tlc/1.0.15/commands/M0004.json +54 -33
  231. data/schemas/tlc/1.0.15/commands/M0005.json +79 -58
  232. data/schemas/tlc/1.0.15/commands/M0006.json +79 -58
  233. data/schemas/tlc/1.0.15/commands/M0007.json +54 -33
  234. data/schemas/tlc/1.0.15/commands/M0008.json +79 -58
  235. data/schemas/tlc/1.0.15/commands/M0010.json +54 -33
  236. data/schemas/tlc/1.0.15/commands/M0011.json +54 -33
  237. data/schemas/tlc/1.0.15/commands/M0012.json +48 -27
  238. data/schemas/tlc/1.0.15/commands/M0013.json +48 -27
  239. data/schemas/tlc/1.0.15/commands/M0014.json +74 -53
  240. data/schemas/tlc/1.0.15/commands/M0015.json +79 -58
  241. data/schemas/tlc/1.0.15/commands/M0016.json +48 -27
  242. data/schemas/tlc/1.0.15/commands/M0017.json +48 -27
  243. data/schemas/tlc/1.0.15/commands/M0018.json +79 -58
  244. data/schemas/tlc/1.0.15/commands/M0019.json +104 -83
  245. data/schemas/tlc/1.0.15/commands/M0020.json +104 -83
  246. data/schemas/tlc/1.0.15/commands/M0021.json +48 -27
  247. data/schemas/tlc/1.0.15/commands/M0103.json +71 -50
  248. data/schemas/tlc/1.0.15/commands/M0104.json +178 -157
  249. data/schemas/tlc/1.0.15/statuses/S0001.json +104 -83
  250. data/schemas/tlc/1.0.15/statuses/S0002.json +30 -9
  251. data/schemas/tlc/1.0.15/statuses/S0003.json +48 -27
  252. data/schemas/tlc/1.0.15/statuses/S0004.json +48 -27
  253. data/schemas/tlc/1.0.15/statuses/S0005.json +35 -14
  254. data/schemas/tlc/1.0.15/statuses/S0006.json +59 -38
  255. data/schemas/tlc/1.0.15/statuses/S0007.json +59 -38
  256. data/schemas/tlc/1.0.15/statuses/S0008.json +59 -38
  257. data/schemas/tlc/1.0.15/statuses/S0009.json +59 -38
  258. data/schemas/tlc/1.0.15/statuses/S0010.json +59 -38
  259. data/schemas/tlc/1.0.15/statuses/S0011.json +59 -38
  260. data/schemas/tlc/1.0.15/statuses/S0012.json +59 -38
  261. data/schemas/tlc/1.0.15/statuses/S0013.json +59 -38
  262. data/schemas/tlc/1.0.15/statuses/S0014.json +35 -14
  263. data/schemas/tlc/1.0.15/statuses/S0015.json +35 -14
  264. data/schemas/tlc/1.0.15/statuses/S0016.json +35 -14
  265. data/schemas/tlc/1.0.15/statuses/S0017.json +35 -14
  266. data/schemas/tlc/1.0.15/statuses/S0018.json +35 -14
  267. data/schemas/tlc/1.0.15/statuses/S0019.json +35 -14
  268. data/schemas/tlc/1.0.15/statuses/S0020.json +59 -38
  269. data/schemas/tlc/1.0.15/statuses/S0021.json +31 -10
  270. data/schemas/tlc/1.0.15/statuses/S0022.json +30 -9
  271. data/schemas/tlc/1.0.15/statuses/S0023.json +31 -10
  272. data/schemas/tlc/1.0.15/statuses/S0024.json +31 -10
  273. data/schemas/tlc/1.0.15/statuses/S0025.json +216 -195
  274. data/schemas/tlc/1.0.15/statuses/S0026.json +30 -9
  275. data/schemas/tlc/1.0.15/statuses/S0027.json +30 -9
  276. data/schemas/tlc/1.0.15/statuses/S0028.json +30 -9
  277. data/schemas/tlc/1.0.15/statuses/S0029.json +30 -9
  278. data/schemas/tlc/1.0.15/statuses/S0030.json +30 -9
  279. data/schemas/tlc/1.0.15/statuses/S0031.json +30 -9
  280. data/schemas/tlc/1.0.15/statuses/S0091.json +51 -30
  281. data/schemas/tlc/1.0.15/statuses/S0092.json +51 -30
  282. data/schemas/tlc/1.0.15/statuses/S0095.json +30 -9
  283. data/schemas/tlc/1.0.15/statuses/S0096.json +159 -138
  284. data/schemas/tlc/1.0.15/statuses/S0097.json +53 -32
  285. data/schemas/tlc/1.0.15/statuses/S0098.json +73 -52
  286. data/schemas/tlc/1.0.15/statuses/S0201.json +59 -38
  287. data/schemas/tlc/1.0.15/statuses/S0202.json +59 -38
  288. data/schemas/tlc/1.0.15/statuses/S0203.json +59 -38
  289. data/schemas/tlc/1.0.15/statuses/S0204.json +259 -238
  290. data/schemas/tlc/1.0.15/statuses/S0205.json +54 -33
  291. data/schemas/tlc/1.0.15/statuses/S0206.json +54 -33
  292. data/schemas/tlc/1.0.15/statuses/S0207.json +54 -33
  293. data/schemas/tlc/1.0.15/statuses/S0208.json +214 -193
  294. data/schemas/tlc/1.0.7/alarms/A0001.json +1 -5
  295. data/schemas/tlc/1.0.7/alarms/A0002.json +1 -5
  296. data/schemas/tlc/1.0.7/alarms/A0003.json +1 -5
  297. data/schemas/tlc/1.0.7/alarms/A0004.json +1 -5
  298. data/schemas/tlc/1.0.7/alarms/A0005.json +1 -5
  299. data/schemas/tlc/1.0.7/alarms/A0006.json +1 -5
  300. data/schemas/tlc/1.0.7/alarms/A0007.json +1 -5
  301. data/schemas/tlc/1.0.7/alarms/A0008.json +35 -14
  302. data/schemas/tlc/1.0.7/alarms/A0009.json +1 -5
  303. data/schemas/tlc/1.0.7/alarms/A0101.json +1 -5
  304. data/schemas/tlc/1.0.7/alarms/A0201.json +35 -14
  305. data/schemas/tlc/1.0.7/alarms/A0202.json +35 -14
  306. data/schemas/tlc/1.0.7/alarms/A0301.json +101 -80
  307. data/schemas/tlc/1.0.7/alarms/A0302.json +126 -105
  308. data/schemas/tlc/1.0.7/commands/M0001.json +108 -87
  309. data/schemas/tlc/1.0.7/commands/M0002.json +79 -58
  310. data/schemas/tlc/1.0.7/commands/M0003.json +79 -58
  311. data/schemas/tlc/1.0.7/commands/M0004.json +54 -33
  312. data/schemas/tlc/1.0.7/commands/M0005.json +79 -58
  313. data/schemas/tlc/1.0.7/commands/M0006.json +79 -58
  314. data/schemas/tlc/1.0.7/commands/M0007.json +54 -33
  315. data/schemas/tlc/1.0.7/commands/M0008.json +79 -58
  316. data/schemas/tlc/1.0.7/commands/M0010.json +54 -33
  317. data/schemas/tlc/1.0.7/commands/M0011.json +54 -33
  318. data/schemas/tlc/1.0.7/commands/M0019.json +104 -83
  319. data/schemas/tlc/1.0.7/commands/M0103.json +71 -50
  320. data/schemas/tlc/1.0.7/commands/M0104.json +178 -157
  321. data/schemas/tlc/1.0.7/statuses/S0001.json +104 -83
  322. data/schemas/tlc/1.0.7/statuses/S0002.json +30 -9
  323. data/schemas/tlc/1.0.7/statuses/S0003.json +48 -27
  324. data/schemas/tlc/1.0.7/statuses/S0004.json +48 -27
  325. data/schemas/tlc/1.0.7/statuses/S0005.json +35 -14
  326. data/schemas/tlc/1.0.7/statuses/S0006.json +59 -38
  327. data/schemas/tlc/1.0.7/statuses/S0007.json +59 -38
  328. data/schemas/tlc/1.0.7/statuses/S0008.json +59 -38
  329. data/schemas/tlc/1.0.7/statuses/S0009.json +59 -38
  330. data/schemas/tlc/1.0.7/statuses/S0010.json +59 -38
  331. data/schemas/tlc/1.0.7/statuses/S0011.json +59 -38
  332. data/schemas/tlc/1.0.7/statuses/S0012.json +59 -38
  333. data/schemas/tlc/1.0.7/statuses/S0013.json +59 -38
  334. data/schemas/tlc/1.0.7/statuses/S0014.json +35 -14
  335. data/schemas/tlc/1.0.7/statuses/S0015.json +35 -14
  336. data/schemas/tlc/1.0.7/statuses/S0016.json +35 -14
  337. data/schemas/tlc/1.0.7/statuses/S0017.json +35 -14
  338. data/schemas/tlc/1.0.7/statuses/S0018.json +35 -14
  339. data/schemas/tlc/1.0.7/statuses/S0019.json +35 -14
  340. data/schemas/tlc/1.0.7/statuses/S0020.json +59 -38
  341. data/schemas/tlc/1.0.7/statuses/S0021.json +31 -10
  342. data/schemas/tlc/1.0.7/statuses/S0025.json +216 -195
  343. data/schemas/tlc/1.0.7/statuses/S0091.json +51 -30
  344. data/schemas/tlc/1.0.7/statuses/S0092.json +51 -30
  345. data/schemas/tlc/1.0.7/statuses/S0095.json +30 -9
  346. data/schemas/tlc/1.0.7/statuses/S0096.json +159 -138
  347. data/schemas/tlc/1.0.7/statuses/S0201.json +59 -38
  348. data/schemas/tlc/1.0.7/statuses/S0202.json +59 -38
  349. data/schemas/tlc/1.0.7/statuses/S0203.json +59 -38
  350. data/schemas/tlc/1.0.7/statuses/S0204.json +259 -238
  351. data/schemas/tlc/1.0.8/alarms/A0001.json +1 -5
  352. data/schemas/tlc/1.0.8/alarms/A0002.json +1 -5
  353. data/schemas/tlc/1.0.8/alarms/A0003.json +1 -5
  354. data/schemas/tlc/1.0.8/alarms/A0004.json +1 -5
  355. data/schemas/tlc/1.0.8/alarms/A0005.json +1 -5
  356. data/schemas/tlc/1.0.8/alarms/A0006.json +1 -5
  357. data/schemas/tlc/1.0.8/alarms/A0007.json +1 -5
  358. data/schemas/tlc/1.0.8/alarms/A0008.json +35 -14
  359. data/schemas/tlc/1.0.8/alarms/A0009.json +1 -5
  360. data/schemas/tlc/1.0.8/alarms/A0101.json +1 -5
  361. data/schemas/tlc/1.0.8/alarms/A0201.json +35 -14
  362. data/schemas/tlc/1.0.8/alarms/A0202.json +35 -14
  363. data/schemas/tlc/1.0.8/alarms/A0301.json +101 -80
  364. data/schemas/tlc/1.0.8/alarms/A0302.json +126 -105
  365. data/schemas/tlc/1.0.8/commands/M0001.json +108 -87
  366. data/schemas/tlc/1.0.8/commands/M0002.json +79 -58
  367. data/schemas/tlc/1.0.8/commands/M0003.json +79 -58
  368. data/schemas/tlc/1.0.8/commands/M0004.json +54 -33
  369. data/schemas/tlc/1.0.8/commands/M0005.json +79 -58
  370. data/schemas/tlc/1.0.8/commands/M0006.json +79 -58
  371. data/schemas/tlc/1.0.8/commands/M0007.json +54 -33
  372. data/schemas/tlc/1.0.8/commands/M0008.json +79 -58
  373. data/schemas/tlc/1.0.8/commands/M0010.json +54 -33
  374. data/schemas/tlc/1.0.8/commands/M0011.json +54 -33
  375. data/schemas/tlc/1.0.8/commands/M0012.json +48 -27
  376. data/schemas/tlc/1.0.8/commands/M0013.json +48 -27
  377. data/schemas/tlc/1.0.8/commands/M0019.json +104 -83
  378. data/schemas/tlc/1.0.8/commands/M0103.json +71 -50
  379. data/schemas/tlc/1.0.8/commands/M0104.json +178 -157
  380. data/schemas/tlc/1.0.8/statuses/S0001.json +104 -83
  381. data/schemas/tlc/1.0.8/statuses/S0002.json +30 -9
  382. data/schemas/tlc/1.0.8/statuses/S0003.json +48 -27
  383. data/schemas/tlc/1.0.8/statuses/S0004.json +48 -27
  384. data/schemas/tlc/1.0.8/statuses/S0005.json +35 -14
  385. data/schemas/tlc/1.0.8/statuses/S0006.json +59 -38
  386. data/schemas/tlc/1.0.8/statuses/S0007.json +59 -38
  387. data/schemas/tlc/1.0.8/statuses/S0008.json +59 -38
  388. data/schemas/tlc/1.0.8/statuses/S0009.json +59 -38
  389. data/schemas/tlc/1.0.8/statuses/S0010.json +59 -38
  390. data/schemas/tlc/1.0.8/statuses/S0011.json +59 -38
  391. data/schemas/tlc/1.0.8/statuses/S0012.json +59 -38
  392. data/schemas/tlc/1.0.8/statuses/S0013.json +59 -38
  393. data/schemas/tlc/1.0.8/statuses/S0014.json +35 -14
  394. data/schemas/tlc/1.0.8/statuses/S0015.json +35 -14
  395. data/schemas/tlc/1.0.8/statuses/S0016.json +35 -14
  396. data/schemas/tlc/1.0.8/statuses/S0017.json +35 -14
  397. data/schemas/tlc/1.0.8/statuses/S0018.json +35 -14
  398. data/schemas/tlc/1.0.8/statuses/S0019.json +35 -14
  399. data/schemas/tlc/1.0.8/statuses/S0020.json +59 -38
  400. data/schemas/tlc/1.0.8/statuses/S0021.json +31 -10
  401. data/schemas/tlc/1.0.8/statuses/S0091.json +51 -30
  402. data/schemas/tlc/1.0.8/statuses/S0092.json +51 -30
  403. data/schemas/tlc/1.0.8/statuses/S0095.json +30 -9
  404. data/schemas/tlc/1.0.8/statuses/S0096.json +159 -138
  405. data/schemas/tlc/1.0.8/statuses/S0201.json +59 -38
  406. data/schemas/tlc/1.0.8/statuses/S0202.json +59 -38
  407. data/schemas/tlc/1.0.8/statuses/S0203.json +59 -38
  408. data/schemas/tlc/1.0.8/statuses/S0204.json +259 -238
  409. data/schemas/tlc/1.0.9/alarms/A0001.json +1 -5
  410. data/schemas/tlc/1.0.9/alarms/A0002.json +1 -5
  411. data/schemas/tlc/1.0.9/alarms/A0003.json +1 -5
  412. data/schemas/tlc/1.0.9/alarms/A0004.json +1 -5
  413. data/schemas/tlc/1.0.9/alarms/A0005.json +1 -5
  414. data/schemas/tlc/1.0.9/alarms/A0006.json +1 -5
  415. data/schemas/tlc/1.0.9/alarms/A0007.json +1 -5
  416. data/schemas/tlc/1.0.9/alarms/A0008.json +35 -14
  417. data/schemas/tlc/1.0.9/alarms/A0009.json +1 -5
  418. data/schemas/tlc/1.0.9/alarms/A0101.json +1 -5
  419. data/schemas/tlc/1.0.9/alarms/A0201.json +35 -14
  420. data/schemas/tlc/1.0.9/alarms/A0202.json +35 -14
  421. data/schemas/tlc/1.0.9/alarms/A0301.json +101 -80
  422. data/schemas/tlc/1.0.9/alarms/A0302.json +126 -105
  423. data/schemas/tlc/1.0.9/commands/M0001.json +108 -87
  424. data/schemas/tlc/1.0.9/commands/M0002.json +79 -58
  425. data/schemas/tlc/1.0.9/commands/M0003.json +79 -58
  426. data/schemas/tlc/1.0.9/commands/M0004.json +54 -33
  427. data/schemas/tlc/1.0.9/commands/M0005.json +79 -58
  428. data/schemas/tlc/1.0.9/commands/M0006.json +79 -58
  429. data/schemas/tlc/1.0.9/commands/M0007.json +54 -33
  430. data/schemas/tlc/1.0.9/commands/M0008.json +79 -58
  431. data/schemas/tlc/1.0.9/commands/M0010.json +54 -33
  432. data/schemas/tlc/1.0.9/commands/M0011.json +54 -33
  433. data/schemas/tlc/1.0.9/commands/M0012.json +48 -27
  434. data/schemas/tlc/1.0.9/commands/M0013.json +48 -27
  435. data/schemas/tlc/1.0.9/commands/M0019.json +104 -83
  436. data/schemas/tlc/1.0.9/commands/M0103.json +71 -50
  437. data/schemas/tlc/1.0.9/commands/M0104.json +178 -157
  438. data/schemas/tlc/1.0.9/statuses/S0001.json +104 -83
  439. data/schemas/tlc/1.0.9/statuses/S0002.json +30 -9
  440. data/schemas/tlc/1.0.9/statuses/S0003.json +48 -27
  441. data/schemas/tlc/1.0.9/statuses/S0004.json +48 -27
  442. data/schemas/tlc/1.0.9/statuses/S0005.json +35 -14
  443. data/schemas/tlc/1.0.9/statuses/S0006.json +59 -38
  444. data/schemas/tlc/1.0.9/statuses/S0007.json +59 -38
  445. data/schemas/tlc/1.0.9/statuses/S0008.json +59 -38
  446. data/schemas/tlc/1.0.9/statuses/S0009.json +59 -38
  447. data/schemas/tlc/1.0.9/statuses/S0010.json +59 -38
  448. data/schemas/tlc/1.0.9/statuses/S0011.json +59 -38
  449. data/schemas/tlc/1.0.9/statuses/S0012.json +59 -38
  450. data/schemas/tlc/1.0.9/statuses/S0013.json +59 -38
  451. data/schemas/tlc/1.0.9/statuses/S0014.json +35 -14
  452. data/schemas/tlc/1.0.9/statuses/S0015.json +35 -14
  453. data/schemas/tlc/1.0.9/statuses/S0016.json +35 -14
  454. data/schemas/tlc/1.0.9/statuses/S0017.json +35 -14
  455. data/schemas/tlc/1.0.9/statuses/S0018.json +35 -14
  456. data/schemas/tlc/1.0.9/statuses/S0019.json +35 -14
  457. data/schemas/tlc/1.0.9/statuses/S0020.json +59 -38
  458. data/schemas/tlc/1.0.9/statuses/S0021.json +31 -10
  459. data/schemas/tlc/1.0.9/statuses/S0091.json +51 -30
  460. data/schemas/tlc/1.0.9/statuses/S0092.json +51 -30
  461. data/schemas/tlc/1.0.9/statuses/S0095.json +30 -9
  462. data/schemas/tlc/1.0.9/statuses/S0096.json +159 -138
  463. data/schemas/tlc/1.0.9/statuses/S0201.json +59 -38
  464. data/schemas/tlc/1.0.9/statuses/S0202.json +59 -38
  465. data/schemas/tlc/1.0.9/statuses/S0203.json +59 -38
  466. data/schemas/tlc/1.0.9/statuses/S0204.json +259 -238
  467. data/schemas/tlc/1.1/alarms/A0001.json +1 -5
  468. data/schemas/tlc/1.1/alarms/A0002.json +1 -5
  469. data/schemas/tlc/1.1/alarms/A0003.json +1 -5
  470. data/schemas/tlc/1.1/alarms/A0004.json +1 -5
  471. data/schemas/tlc/1.1/alarms/A0005.json +1 -5
  472. data/schemas/tlc/1.1/alarms/A0006.json +1 -5
  473. data/schemas/tlc/1.1/alarms/A0007.json +34 -13
  474. data/schemas/tlc/1.1/alarms/A0008.json +35 -14
  475. data/schemas/tlc/1.1/alarms/A0009.json +1 -5
  476. data/schemas/tlc/1.1/alarms/A0010.json +1 -5
  477. data/schemas/tlc/1.1/alarms/A0101.json +1 -5
  478. data/schemas/tlc/1.1/alarms/A0201.json +35 -14
  479. data/schemas/tlc/1.1/alarms/A0202.json +35 -14
  480. data/schemas/tlc/1.1/alarms/A0301.json +101 -80
  481. data/schemas/tlc/1.1/alarms/A0302.json +126 -105
  482. data/schemas/tlc/1.1/alarms/A0303.json +101 -80
  483. data/schemas/tlc/1.1/alarms/A0304.json +126 -105
  484. data/schemas/tlc/1.1/commands/M0001.json +103 -82
  485. data/schemas/tlc/1.1/commands/M0002.json +79 -58
  486. data/schemas/tlc/1.1/commands/M0003.json +79 -58
  487. data/schemas/tlc/1.1/commands/M0004.json +54 -33
  488. data/schemas/tlc/1.1/commands/M0005.json +79 -58
  489. data/schemas/tlc/1.1/commands/M0006.json +79 -58
  490. data/schemas/tlc/1.1/commands/M0007.json +54 -33
  491. data/schemas/tlc/1.1/commands/M0008.json +79 -58
  492. data/schemas/tlc/1.1/commands/M0010.json +54 -33
  493. data/schemas/tlc/1.1/commands/M0011.json +54 -33
  494. data/schemas/tlc/1.1/commands/M0012.json +48 -27
  495. data/schemas/tlc/1.1/commands/M0013.json +48 -27
  496. data/schemas/tlc/1.1/commands/M0014.json +74 -53
  497. data/schemas/tlc/1.1/commands/M0015.json +79 -58
  498. data/schemas/tlc/1.1/commands/M0016.json +48 -27
  499. data/schemas/tlc/1.1/commands/M0017.json +48 -27
  500. data/schemas/tlc/1.1/commands/M0018.json +79 -58
  501. data/schemas/tlc/1.1/commands/M0019.json +104 -83
  502. data/schemas/tlc/1.1/commands/M0020.json +104 -83
  503. data/schemas/tlc/1.1/commands/M0021.json +48 -27
  504. data/schemas/tlc/1.1/commands/M0022.json +306 -285
  505. data/schemas/tlc/1.1/commands/M0023.json +54 -33
  506. data/schemas/tlc/1.1/commands/M0103.json +71 -50
  507. data/schemas/tlc/1.1/commands/M0104.json +178 -157
  508. data/schemas/tlc/1.1/statuses/S0001.json +104 -83
  509. data/schemas/tlc/1.1/statuses/S0002.json +30 -9
  510. data/schemas/tlc/1.1/statuses/S0003.json +48 -27
  511. data/schemas/tlc/1.1/statuses/S0004.json +48 -27
  512. data/schemas/tlc/1.1/statuses/S0005.json +35 -14
  513. data/schemas/tlc/1.1/statuses/S0006.json +59 -38
  514. data/schemas/tlc/1.1/statuses/S0007.json +85 -64
  515. data/schemas/tlc/1.1/statuses/S0008.json +85 -64
  516. data/schemas/tlc/1.1/statuses/S0009.json +85 -64
  517. data/schemas/tlc/1.1/statuses/S0010.json +85 -64
  518. data/schemas/tlc/1.1/statuses/S0011.json +85 -64
  519. data/schemas/tlc/1.1/statuses/S0012.json +85 -64
  520. data/schemas/tlc/1.1/statuses/S0013.json +59 -38
  521. data/schemas/tlc/1.1/statuses/S0014.json +62 -41
  522. data/schemas/tlc/1.1/statuses/S0015.json +62 -41
  523. data/schemas/tlc/1.1/statuses/S0016.json +35 -14
  524. data/schemas/tlc/1.1/statuses/S0017.json +35 -14
  525. data/schemas/tlc/1.1/statuses/S0018.json +35 -14
  526. data/schemas/tlc/1.1/statuses/S0019.json +35 -14
  527. data/schemas/tlc/1.1/statuses/S0020.json +59 -38
  528. data/schemas/tlc/1.1/statuses/S0021.json +31 -10
  529. data/schemas/tlc/1.1/statuses/S0022.json +30 -9
  530. data/schemas/tlc/1.1/statuses/S0023.json +31 -10
  531. data/schemas/tlc/1.1/statuses/S0024.json +31 -10
  532. data/schemas/tlc/1.1/statuses/S0025.json +216 -195
  533. data/schemas/tlc/1.1/statuses/S0026.json +30 -9
  534. data/schemas/tlc/1.1/statuses/S0027.json +30 -9
  535. data/schemas/tlc/1.1/statuses/S0028.json +30 -9
  536. data/schemas/tlc/1.1/statuses/S0029.json +30 -9
  537. data/schemas/tlc/1.1/statuses/S0030.json +30 -9
  538. data/schemas/tlc/1.1/statuses/S0031.json +30 -9
  539. data/schemas/tlc/1.1/statuses/S0032.json +85 -64
  540. data/schemas/tlc/1.1/statuses/S0033.json +81 -60
  541. data/schemas/tlc/1.1/statuses/S0034.json +35 -14
  542. data/schemas/tlc/1.1/statuses/S0091.json +39 -18
  543. data/schemas/tlc/1.1/statuses/S0092.json +39 -18
  544. data/schemas/tlc/1.1/statuses/S0095.json +30 -9
  545. data/schemas/tlc/1.1/statuses/S0096.json +159 -138
  546. data/schemas/tlc/1.1/statuses/S0097.json +53 -32
  547. data/schemas/tlc/1.1/statuses/S0098.json +73 -52
  548. data/schemas/tlc/1.1/statuses/S0201.json +59 -38
  549. data/schemas/tlc/1.1/statuses/S0202.json +59 -38
  550. data/schemas/tlc/1.1/statuses/S0203.json +59 -38
  551. data/schemas/tlc/1.1/statuses/S0204.json +259 -238
  552. data/schemas/tlc/1.1/statuses/S0205.json +59 -38
  553. data/schemas/tlc/1.1/statuses/S0206.json +59 -38
  554. data/schemas/tlc/1.1/statuses/S0207.json +59 -38
  555. data/schemas/tlc/1.1/statuses/S0208.json +259 -238
  556. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 2f2170f1bbefd3db2199f03c40107e648b154595d9a74596a860e7bc85545ffe
4
- data.tar.gz: 7db0cca81868bf6ee9daf54ea883b950348c45d7d6f210baa33372815fda0d8f
3
+ metadata.gz: 8c357f707bd7797ccad36b5b4a86d1599d2b8b1351007037a87ea1e56b2601a7
4
+ data.tar.gz: 41c02d05f87b281b4bff551ca790458ab2a860c459a59ca34c1f5d1f9bfb3ec1
5
5
  SHA512:
6
- metadata.gz: ee609bf920e98dfb869ce55b40c12e7b8a8f5e7407c146b58c34ed5b981fb5e7ddbff74640d98e33b74fba5efba6e6e06504f9e47fda4b2bd7e88d48409280cd
7
- data.tar.gz: c97a92765678a5af6d3309662ef21c7530d616b56ab7cb3c7fb59f4b5e5a5b1c515ee0c65e08ef8976837db770115ce9c008fa946a93dd09e6268572c4b7c80f
6
+ metadata.gz: 3e7254f157c26648285d3a7e44f921023fe3233792d5207e9b6081d4a849f0357e0a46971e93b642133d1f180d962f466fd08dea901768c4a83cc038dbe2229f
7
+ data.tar.gz: 6bc084b220bcf1b9d2dea02c7bba7c296c5b64c204d4e4641972fc4f6a99c86e52944fbc176d137f59ed1251d89b910d3bc1e9e8a8aa8780b98495d82ca80c62
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp_schema (0.4.3)
4
+ rsmp_schema (0.4.5)
5
5
  json_schemer (~> 0.2.21)
6
6
  thor (~> 1.2.1)
7
7
 
@@ -25,7 +25,6 @@ module RSMP
25
25
  def self.build_value item
26
26
  out = {}
27
27
  out['description'] = item['description'] if item['description']
28
-
29
28
  if item['type'] =~/_list$/
30
29
  handle_string_list item, out
31
30
  else
@@ -137,16 +136,40 @@ module RSMP
137
136
 
138
137
  # convert yaml alarm/status/command item to corresponding jsons schema
139
138
  def self.build_item item, property_key: 'v'
140
- json = { "allOf" => [ { "description" => item['description'] } ] }
141
- if item['arguments']
142
- json["allOf"].first["properties"] = { "n" => { "enum" => item['arguments'].keys.sort } }
143
- item['arguments'].each_pair do |key,argument|
144
- json["allOf"] << {
145
- "if" => { "required" => ["n"], "properties" => { "n" => { "const" => key }}},
146
- "then" => { "properties" => { property_key => build_value(argument) } }
147
- }
148
- end
139
+ unless item['arguments']
140
+ json = {
141
+ "description" => item['description'],
142
+ }
143
+ return json
149
144
  end
145
+
146
+ json = {
147
+ "description" => item['description'],
148
+ "allOf" => [
149
+ {
150
+ "properties" => { "n" => { "enum" => item['arguments'].keys.sort }},
151
+ },
152
+ {
153
+ "if" =>
154
+ {
155
+ "required" => ["q"],
156
+ "properties" => { "q"=> { "const" => "undefined" }},
157
+ },
158
+ "then" => {
159
+ "s" => { "type" => "null" }
160
+ },
161
+ "else" => {
162
+ "allOf" => item['arguments'].map do |key,argument|
163
+ {
164
+ "if" => { "required" => ["n"], "properties" => { "n" => { "const" => key }}},
165
+ "then" => { "properties" => { property_key => build_value(argument) }}
166
+ }
167
+ end
168
+ }
169
+ }
170
+ ]
171
+ }
172
+
150
173
  json
151
174
  end
152
175
 
@@ -190,7 +213,7 @@ module RSMP
190
213
 
191
214
  # convert a status to json schema
192
215
  def self.output_status out, key, item
193
- json = build_item item, property_key:'s'
216
+ json = build_item item, property_key: 's'
194
217
  out["statuses/#{key}.json"] = output_json json
195
218
  end
196
219
 
@@ -1,5 +1,5 @@
1
1
  module RSMP
2
2
  module Schema
3
- VERSION = "0.4.3"
3
+ VERSION = "0.4.5"
4
4
  end
5
5
  end
@@ -13,10 +13,10 @@
13
13
  "type" : "object",
14
14
  "properties": {
15
15
  "sCI" : { "$ref": "definitions.json#/status_code" },
16
- "n" : { "description" : "Unique reference of the value", "type" : "string" },
16
+ "n" : { "description" : "Value name", "type" : "string" },
17
17
  "s" : { "description" : "Value", "type" : "string" },
18
18
  "q" : {
19
- "description" : "Value",
19
+ "description" : "Quality",
20
20
  "type" : "string",
21
21
  "enum" : [ "recent", "old", "undefined", "unknown" ]
22
22
  }
@@ -11,20 +11,35 @@
11
11
  "minItems": 1,
12
12
  "items" : {
13
13
  "type" : "object",
14
- "properties": {
15
- "sCI" : { "$ref": "../3.1.2/definitions.json#/status_code" },
16
- "n" : { "description" : "Unique reference of the value", "type" : "string" },
17
- "s" : { "description" : "Value", "type" : "string" },
18
- "q" : {
19
- "description" : "Value",
20
- "type" : "string",
21
- "enum" : [ "recent", "old", "undefined", "unknown" ] // 'undefined' was added
14
+ "allOf" : [
15
+ {
16
+ "required" : [ "sCI", "n", "s", "q" ],
17
+ "additionalProperties" : false,
18
+ "properties": {
19
+ "sCI" : { "$ref": "../3.1.2/definitions.json#/status_code" },
20
+ "n" : { "description" : "Value name", "type" : "string" },
21
+ "q" : { "description" : "Quality", "type" : "string" },
22
+ "s" : { "description" : "Value" }
23
+ }
24
+ },
25
+ {
26
+ "if" : {
27
+ "required" : [ "q" ],
28
+ "properties": { "q" : { "const": "undefined" }}
29
+ },
30
+ "then" : {
31
+ "properties": { "s" : { "type": "null" }}
32
+ },
33
+ "else" : {
34
+ "properties": {
35
+ "s" : { "type" : ["string"] },
36
+ "q" : { "enum" : [ "recent", "old", "unknown" ] }
37
+ }
38
+ }
22
39
  }
23
- },
24
- "required" : [ "sCI", "n", "s", "q" ],
25
- "additionalProperties": false
40
+ ]
26
41
  }
27
42
  }
28
43
  },
29
44
  "required" : [ "mId", "cId", "sTs", "sS" ]
30
- }
45
+ }
@@ -11,20 +11,35 @@
11
11
  "minItems": 1,
12
12
  "items" : {
13
13
  "type" : "object",
14
- "properties": {
15
- "sCI" : { "$ref": "../3.1.2/definitions.json#/status_code" },
16
- "n" : { "description" : "Unique reference of the value", "type" : "string" },
17
- "s" : { "description" : "Value", "type" : ["string"," array"] }, // 3.2 allow arrays
18
- "q" : {
19
- "description" : "Value",
20
- "type" : "string",
21
- "enum" : [ "recent", "old", "undefined", "unknown" ]
14
+ "allOf" : [
15
+ {
16
+ "required" : [ "sCI", "n", "s", "q" ],
17
+ "additionalProperties" : false,
18
+ "properties": {
19
+ "sCI" : { "$ref": "../3.1.2/definitions.json#/status_code" },
20
+ "n" : { "description" : "Value name", "type" : "string" },
21
+ "q" : { "description" : "Quality", "type" : "string" },
22
+ "s" : { "description" : "Value" }
23
+ }
24
+ },
25
+ {
26
+ "if" : {
27
+ "required" : [ "q" ],
28
+ "properties": { "q" : { "const": "undefined" }}
29
+ },
30
+ "then" : {
31
+ "properties": { "s" : { "type": "null" }}
32
+ },
33
+ "else" : {
34
+ "properties": {
35
+ "s" : { "type" : [ "string", "array" ] },
36
+ "q" : { "enum" : [ "recent", "old", "unknown" ] }
37
+ }
38
+ }
22
39
  }
23
- },
24
- "required" : [ "sCI", "n", "s", "q" ],
25
- "additionalProperties": false
40
+ ]
26
41
  }
27
42
  }
28
43
  },
29
44
  "required" : [ "mId", "cId", "sTs", "sS" ]
30
- }
45
+ }
@@ -1,7 +1,3 @@
1
1
  {
2
- "allOf" : [
3
- {
4
- "description" : "Serious hardware error.\nIs a \"major fault\" defined according to 3.8 i EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675."
5
- }
6
- ]
2
+ "description" : "Serious hardware error.\nIs a \"major fault\" defined according to 3.8 i EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675."
7
3
  }
@@ -1,7 +1,3 @@
1
1
  {
2
- "allOf" : [
3
- {
4
- "description" : "Less serious hardware error.\nIs a \"minor fault\" defined according to 3.11 in EN12675."
5
- }
6
- ]
2
+ "description" : "Less serious hardware error.\nIs a \"minor fault\" defined according to 3.11 in EN12675."
7
3
  }
@@ -1,7 +1,3 @@
1
1
  {
2
- "allOf" : [
3
- {
4
- "description" : "Serious configuration error.\nIs a \"major fault\" defined according to 3.8 in EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675."
5
- }
6
- ]
2
+ "description" : "Serious configuration error.\nIs a \"major fault\" defined according to 3.8 in EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675."
7
3
  }
@@ -1,7 +1,3 @@
1
1
  {
2
- "allOf" : [
3
- {
4
- "description" : "Less serious configuration error.\nIs a \"minor fault\" defined according to 3.11 in EN12675."
5
- }
6
- ]
2
+ "description" : "Less serious configuration error.\nIs a \"minor fault\" defined according to 3.11 in EN12675."
7
3
  }
@@ -1,7 +1,3 @@
1
1
  {
2
- "allOf" : [
3
- {
4
- "description" : "Communication error between traffic light controllers / synchronisation error.\nIs a \"minor fault\" defined according to 3.11 in EN12675."
5
- }
6
- ]
2
+ "description" : "Communication error between traffic light controllers / synchronisation error.\nIs a \"minor fault\" defined according to 3.11 in EN12675."
7
3
  }
@@ -1,7 +1,3 @@
1
1
  {
2
- "allOf" : [
3
- {
4
- "description" : "Safety error\nIs a \"major fault\" defined according to 3.8 in EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675."
5
- }
6
- ]
2
+ "description" : "Safety error\nIs a \"major fault\" defined according to 3.8 in EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675."
7
3
  }
@@ -1,7 +1,3 @@
1
1
  {
2
- "allOf" : [
3
- {
4
- "description" : "Communication error between one or multiple traffic light controllers and central control system.\nUsed for communication errors with the central system. Includes NTP connection loss if the TLC is configured to use NTP.\nIs a \"minor fault\" defined according to 3.11 in EN12675."
5
- }
6
- ]
2
+ "description" : "Communication error between one or multiple traffic light controllers and central control system.\nUsed for communication errors with the central system. Includes NTP connection loss if the TLC is configured to use NTP.\nIs a \"minor fault\" defined according to 3.11 in EN12675."
7
3
  }
@@ -1,7 +1,7 @@
1
1
  {
2
+ "description" : "Dead lock error.\nUsed for dead lock errors.\nFor instance; a signal group has requested green but is unable to switch due to a conflicting signal group for an extended period of time. At some point the request times out and the controller goes failure mode. The cause for this error is due to configuration errors or external sources.\nIs a \"major fault\" defined according to 3.8 in EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675.",
2
3
  "allOf" : [
3
4
  {
4
- "description" : "Dead lock error.\nUsed for dead lock errors.\nFor instance; a signal group has requested green but is unable to switch due to a conflicting signal group for an extended period of time. At some point the request times out and the controller goes failure mode. The cause for this error is due to configuration errors or external sources.\nIs a \"major fault\" defined according to 3.8 in EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675.",
5
5
  "properties" : {
6
6
  "n" : {
7
7
  "enum" : [
@@ -13,27 +13,48 @@
13
13
  {
14
14
  "if" : {
15
15
  "required" : [
16
- "n"
16
+ "q"
17
17
  ],
18
18
  "properties" : {
19
- "n" : {
20
- "const" : "timeplan"
19
+ "q" : {
20
+ "const" : "undefined"
21
21
  }
22
22
  }
23
23
  },
24
24
  "then" : {
25
- "properties" : {
26
- "v" : {
27
- "allOf" : [
28
- {
29
- "description" : "Current time plan"
30
- },
31
- {
32
- "$ref" : "../../../core/3.1.2/definitions.json#/integer"
25
+ "s" : {
26
+ "type" : "null"
27
+ }
28
+ },
29
+ "else" : {
30
+ "allOf" : [
31
+ {
32
+ "if" : {
33
+ "required" : [
34
+ "n"
35
+ ],
36
+ "properties" : {
37
+ "n" : {
38
+ "const" : "timeplan"
39
+ }
33
40
  }
34
- ]
41
+ },
42
+ "then" : {
43
+ "properties" : {
44
+ "v" : {
45
+ "allOf" : [
46
+ {
47
+ "description" : "Current time plan"
48
+ },
49
+ {
50
+ "$ref" : "../../../core/3.1.2/definitions.json#/integer"
51
+ }
52
+ ]
53
+ }
54
+ }
55
+ }
35
56
  }
36
- }
57
+ ]
37
58
  }
38
59
  }
39
60
  ]
@@ -1,7 +1,3 @@
1
1
  {
2
- "allOf" : [
3
- {
4
- "description" : "Other error.\nUsed for other errors not covered by any other alarm type\nIs a \"minor fault\" defined according to 3.11 in EN12675."
5
- }
6
- ]
2
+ "description" : "Other error.\nUsed for other errors not covered by any other alarm type\nIs a \"minor fault\" defined according to 3.11 in EN12675."
7
3
  }
@@ -1,7 +1,3 @@
1
1
  {
2
- "allOf" : [
3
- {
4
- "description" : "Pushbutton error.\nUsed for push buttons."
5
- }
6
- ]
2
+ "description" : "Pushbutton error.\nUsed for push buttons."
7
3
  }
@@ -1,7 +1,7 @@
1
1
  {
2
+ "description" : "Serious lamp error.\nUsed for lamp errors.\nIs a \"major fault\" defined according to 3.8 in EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675.",
2
3
  "allOf" : [
3
4
  {
4
- "description" : "Serious lamp error.\nUsed for lamp errors.\nIs a \"major fault\" defined according to 3.8 in EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675.",
5
5
  "properties" : {
6
6
  "n" : {
7
7
  "enum" : [
@@ -13,26 +13,47 @@
13
13
  {
14
14
  "if" : {
15
15
  "required" : [
16
- "n"
16
+ "q"
17
17
  ],
18
18
  "properties" : {
19
- "n" : {
20
- "const" : "color"
19
+ "q" : {
20
+ "const" : "undefined"
21
21
  }
22
22
  }
23
23
  },
24
24
  "then" : {
25
- "properties" : {
26
- "v" : {
27
- "description" : "Color of lamp",
28
- "type" : "string",
29
- "enum" : [
30
- "green",
31
- "red",
32
- "yellow"
33
- ]
34
- }
25
+ "s" : {
26
+ "type" : "null"
35
27
  }
28
+ },
29
+ "else" : {
30
+ "allOf" : [
31
+ {
32
+ "if" : {
33
+ "required" : [
34
+ "n"
35
+ ],
36
+ "properties" : {
37
+ "n" : {
38
+ "const" : "color"
39
+ }
40
+ }
41
+ },
42
+ "then" : {
43
+ "properties" : {
44
+ "v" : {
45
+ "description" : "Color of lamp",
46
+ "type" : "string",
47
+ "enum" : [
48
+ "green",
49
+ "red",
50
+ "yellow"
51
+ ]
52
+ }
53
+ }
54
+ }
55
+ }
56
+ ]
36
57
  }
37
58
  }
38
59
  ]
@@ -1,7 +1,7 @@
1
1
  {
2
+ "description" : "Less serious lamp error.\nUsed for lamp errors.\nIs a \"minor fault\" defined according to 3.11 in EN12675.",
2
3
  "allOf" : [
3
4
  {
4
- "description" : "Less serious lamp error.\nUsed for lamp errors.\nIs a \"minor fault\" defined according to 3.11 in EN12675.",
5
5
  "properties" : {
6
6
  "n" : {
7
7
  "enum" : [
@@ -13,26 +13,47 @@
13
13
  {
14
14
  "if" : {
15
15
  "required" : [
16
- "n"
16
+ "q"
17
17
  ],
18
18
  "properties" : {
19
- "n" : {
20
- "const" : "color"
19
+ "q" : {
20
+ "const" : "undefined"
21
21
  }
22
22
  }
23
23
  },
24
24
  "then" : {
25
- "properties" : {
26
- "v" : {
27
- "description" : "Color of lamp",
28
- "type" : "string",
29
- "enum" : [
30
- "green",
31
- "red",
32
- "yellow"
33
- ]
34
- }
25
+ "s" : {
26
+ "type" : "null"
35
27
  }
28
+ },
29
+ "else" : {
30
+ "allOf" : [
31
+ {
32
+ "if" : {
33
+ "required" : [
34
+ "n"
35
+ ],
36
+ "properties" : {
37
+ "n" : {
38
+ "const" : "color"
39
+ }
40
+ }
41
+ },
42
+ "then" : {
43
+ "properties" : {
44
+ "v" : {
45
+ "description" : "Color of lamp",
46
+ "type" : "string",
47
+ "enum" : [
48
+ "green",
49
+ "red",
50
+ "yellow"
51
+ ]
52
+ }
53
+ }
54
+ }
55
+ }
56
+ ]
36
57
  }
37
58
  }
38
59
  ]