rsmp_schema 0.6.0 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/lib/rsmp_schema/schema.rb +6 -1
- data/lib/rsmp_schema/version.rb +1 -1
- data/schemas/core/{3.2 → 3.2.0}/alarm.json +3 -3
- data/schemas/core/{3.2 → 3.2.0}/core.json +1 -1
- data/schemas/core/{3.2 → 3.2.0}/rsmp.json +2 -2
- data/schemas/core/{3.2 → 3.2.0}/status_update.json +1 -1
- data/schemas/core/3.2.1/rsmp.json +4 -4
- data/schemas/core/3.2.2/core.json +39 -0
- data/schemas/core/3.2.2/rsmp.json +133 -0
- data/schemas/tlc/{1.1 → 1.1.0}/rsmp.json +1 -1
- data/schemas/tlc/{1.1 → 1.1.0}/sxl.yaml +1 -1
- data/schemas/tlc/{1.2 → 1.2.0}/rsmp.json +1 -1
- data/schemas/tlc/{1.2 → 1.2.0}/sxl.yaml +1 -1
- metadata +206 -204
- /data/schemas/core/{3.2 → 3.2.0}/alarm_acknowledge.json +0 -0
- /data/schemas/core/{3.2 → 3.2.0}/alarm_issue.json +0 -0
- /data/schemas/core/{3.2 → 3.2.0}/alarm_suspended_resumed.json +0 -0
- /data/schemas/core/{3.2 → 3.2.0}/status_response.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0001.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0002.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0003.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0004.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0005.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0006.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0007.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0008.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0009.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0010.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0101.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0201.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0202.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0301.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0302.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0303.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/A0304.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/alarms/alarms.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0001.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0002.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0003.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0004.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0005.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0006.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0007.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0008.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0010.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0011.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0012.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0013.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0014.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0015.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0016.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0017.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0018.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0019.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0020.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0021.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0022.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0023.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0103.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/M0104.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/command_requests.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/command_responses.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/commands/commands.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0001.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0002.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0003.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0004.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0005.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0006.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0007.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0008.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0009.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0010.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0011.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0012.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0013.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0014.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0015.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0016.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0017.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0018.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0019.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0020.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0021.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0022.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0023.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0024.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0025.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0026.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0027.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0028.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0029.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0030.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0031.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0032.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0033.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0034.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0091.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0092.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0095.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0096.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0097.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0098.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0201.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0202.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0203.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0204.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0205.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0206.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0207.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/S0208.json +0 -0
- /data/schemas/tlc/{1.1 → 1.1.0}/statuses/statuses.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0001.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0002.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0003.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0004.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0005.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0006.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0007.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0008.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0009.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0010.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0101.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0201.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0202.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0301.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0302.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0303.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/A0304.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/alarms/alarms.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0001.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0002.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0003.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0004.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0005.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0006.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0007.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0008.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0010.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0011.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0012.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0013.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0014.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0015.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0016.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0017.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0018.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0019.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0020.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0021.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0022.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0023.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0103.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/M0104.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/command_requests.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/command_responses.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/commands/commands.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0001.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0002.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0003.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0004.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0005.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0006.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0007.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0008.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0009.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0010.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0011.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0012.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0013.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0014.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0015.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0016.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0017.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0018.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0019.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0020.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0021.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0022.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0023.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0024.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0025.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0026.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0027.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0028.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0029.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0030.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0031.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0032.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0033.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0034.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0035.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0091.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0092.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0095.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0096.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0097.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0098.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0201.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0202.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0203.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0204.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0205.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0206.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0207.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/S0208.json +0 -0
- /data/schemas/tlc/{1.2 → 1.2.0}/statuses/statuses.json +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92349304b2fa548c7495ff1bd83bd9890d7aab5886e87a213f1c11bd767fa944
|
4
|
+
data.tar.gz: 9da5dcebad4286a2dd161ee06ef7eaa7351b0f4dbdddd0b7ca5d5c1d9fc49271
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3effc2a2059a58a223e13b357d9995be1f28cbe162e742993ef06b3b0bd6559f64dda2eff1e34b670f907fbc55835fe7a5b4a49b2b6139a8e76b0c9ea0bdc0aa
|
7
|
+
data.tar.gz: 7093b400bd752a9defb3bece6ef8db540b3bec84d861cc5d88dee594f4ce8ad5387c1a730a179aa04ebf366d2e70ea5ca8b12644086a0105dbab750e134a45b7
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -25,7 +25,7 @@ rsmp.json
|
|
25
25
|
M0001.json
|
26
26
|
```
|
27
27
|
|
28
|
-
##
|
28
|
+
## Usage
|
29
29
|
The JSON Schema can be used from any language that provides a suitable JSON Schema validation library.
|
30
30
|
|
31
31
|
For example, to validate a JSON message with Ruby using the json_schemer gem:
|
@@ -52,7 +52,7 @@ message = {
|
|
52
52
|
}
|
53
53
|
|
54
54
|
# try validating a message against our schema
|
55
|
-
schema = Pathname.new('schemas/tlc/1.1/rsmp.json')
|
55
|
+
schema = Pathname.new('schemas/tlc/1.1.0/rsmp.json')
|
56
56
|
schemer = JSONSchemer.schema(schema)
|
57
57
|
puts schemer.valid? message # => true
|
58
58
|
```
|
data/lib/rsmp_schema/schema.rb
CHANGED
@@ -139,8 +139,13 @@ module RSMP::Schema
|
|
139
139
|
# 3.1A3r3 >= 3.1
|
140
140
|
# return nil if string doesn't match
|
141
141
|
def self.sanitize_version version
|
142
|
-
|
142
|
+
# match normal z.y.z format
|
143
|
+
matched = /^\d+\.\d+\.\d+/.match version
|
143
144
|
matched.to_s if matched
|
145
|
+
|
146
|
+
# match x.y format, and add patch version zero to get z.y.0
|
147
|
+
matched = /^\d+\.\d+/.match version
|
148
|
+
"#{matched.to_s}.0" if matched
|
144
149
|
end
|
145
150
|
|
146
151
|
# find schema for a particular schema and version
|
data/lib/rsmp_schema/version.rb
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
"aSp" : { "enum" : [ "Issue"] }
|
22
22
|
}
|
23
23
|
},
|
24
|
-
"then": { "$ref": "../3.2/alarm_issue.json" }
|
24
|
+
"then": { "$ref": "../3.2.0/alarm_issue.json" }
|
25
25
|
},
|
26
26
|
{
|
27
27
|
"if": {
|
@@ -47,7 +47,7 @@
|
|
47
47
|
"sS" : { "enum" : [ "suspended", "notSuspended"] }
|
48
48
|
}
|
49
49
|
},
|
50
|
-
"then": { "$ref": "../3.2/alarm_suspended_resumed.json" }
|
50
|
+
"then": { "$ref": "../3.2.0/alarm_suspended_resumed.json" }
|
51
51
|
},
|
52
52
|
{
|
53
53
|
"if": {
|
@@ -65,7 +65,7 @@
|
|
65
65
|
"aSp" : { "enum" : [ "Acknowledge"] }
|
66
66
|
}
|
67
67
|
},
|
68
|
-
"then": { "$ref": "../3.2/alarm_acknowledge.json" }
|
68
|
+
"then": { "$ref": "../3.2.0/alarm_acknowledge.json" }
|
69
69
|
}
|
70
70
|
]
|
71
71
|
}
|
@@ -99,7 +99,7 @@
|
|
99
99
|
"properties": { "type": { "const": "StatusResponse" } }
|
100
100
|
},
|
101
101
|
"then": {
|
102
|
-
"$ref": "../3.2/status_response.json"
|
102
|
+
"$ref": "../3.2.0/status_response.json"
|
103
103
|
}
|
104
104
|
},
|
105
105
|
{
|
@@ -126,7 +126,7 @@
|
|
126
126
|
"properties": { "type": { "const": "StatusUpdate" } }
|
127
127
|
},
|
128
128
|
"then": {
|
129
|
-
"$ref": "../3.2/status_update.json"
|
129
|
+
"$ref": "../3.2.0/status_update.json"
|
130
130
|
}
|
131
131
|
}
|
132
132
|
]
|
@@ -14,7 +14,7 @@
|
|
14
14
|
"properties": {
|
15
15
|
"sCI" : { "$ref": "../3.1.2/definitions.json#/status_code" },
|
16
16
|
"n" : { "description" : "Unique reference of the value", "type" : "string" },
|
17
|
-
"s" : { "description" : "Value", "type" : ["string","array"] }, // array is allowed from 3.2
|
17
|
+
"s" : { "description" : "Value", "type" : ["string","array"] }, // array is allowed from 3.2.0
|
18
18
|
"q" : {
|
19
19
|
"description" : "Value",
|
20
20
|
"type" : "string",
|
@@ -1,7 +1,7 @@
|
|
1
1
|
{
|
2
2
|
"allOf": [
|
3
3
|
{
|
4
|
-
"$ref": "../3.2/core.json"
|
4
|
+
"$ref": "../3.2.0/core.json"
|
5
5
|
},
|
6
6
|
{
|
7
7
|
"if": {
|
@@ -63,7 +63,7 @@
|
|
63
63
|
"properties": { "type": { "const": "Alarm" } }
|
64
64
|
},
|
65
65
|
"then": {
|
66
|
-
"$ref": "../3.2/alarm.json"
|
66
|
+
"$ref": "../3.2.0/alarm.json"
|
67
67
|
}
|
68
68
|
},
|
69
69
|
{
|
@@ -99,7 +99,7 @@
|
|
99
99
|
"properties": { "type": { "const": "StatusResponse" } }
|
100
100
|
},
|
101
101
|
"then": {
|
102
|
-
"$ref": "../3.2/status_response.json"
|
102
|
+
"$ref": "../3.2.0/status_response.json"
|
103
103
|
}
|
104
104
|
},
|
105
105
|
{
|
@@ -126,7 +126,7 @@
|
|
126
126
|
"properties": { "type": { "const": "StatusUpdate" } }
|
127
127
|
},
|
128
128
|
"then": {
|
129
|
-
"$ref": "../3.2/status_update.json"
|
129
|
+
"$ref": "../3.2.0/status_update.json"
|
130
130
|
}
|
131
131
|
}
|
132
132
|
]
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"$schema" : "http://json-schema.org/draft-07/schema#",
|
3
|
+
"name" : "core",
|
4
|
+
"description" : "Core",
|
5
|
+
"version" : "3.2.2",
|
6
|
+
"type" : "object",
|
7
|
+
"allOf" : [
|
8
|
+
{
|
9
|
+
"properties" : {
|
10
|
+
"mType" : {
|
11
|
+
"description" : "Supported RSMP versions",
|
12
|
+
"type" : "string",
|
13
|
+
"const" : "rSMsg"
|
14
|
+
},
|
15
|
+
"type" : {
|
16
|
+
"description" : "Type of RMSP message",
|
17
|
+
"type" : "string",
|
18
|
+
"enum" : [
|
19
|
+
"MessageAck",
|
20
|
+
"MessageNotAck",
|
21
|
+
"Version",
|
22
|
+
"AggregatedStatus",
|
23
|
+
"AggregatedStatusRequest",
|
24
|
+
"Watchdog",
|
25
|
+
"Alarm",
|
26
|
+
"CommandRequest",
|
27
|
+
"CommandResponse",
|
28
|
+
"StatusRequest",
|
29
|
+
"StatusResponse",
|
30
|
+
"StatusSubscribe",
|
31
|
+
"StatusUnsubscribe",
|
32
|
+
"StatusUpdate"
|
33
|
+
]
|
34
|
+
}
|
35
|
+
},
|
36
|
+
"required" : [ "mType", "type" ]
|
37
|
+
}
|
38
|
+
]
|
39
|
+
}
|
@@ -0,0 +1,133 @@
|
|
1
|
+
{
|
2
|
+
"allOf": [
|
3
|
+
{
|
4
|
+
"$ref": "../3.2.0/core.json"
|
5
|
+
},
|
6
|
+
{
|
7
|
+
"if": {
|
8
|
+
"required" : ["type"],
|
9
|
+
"properties": { "type": { "const": "MessageAck" } }
|
10
|
+
},
|
11
|
+
"then": {
|
12
|
+
"$ref": "../3.1.2/message_ack.json"
|
13
|
+
}
|
14
|
+
},
|
15
|
+
{
|
16
|
+
"if": {
|
17
|
+
"required" : ["type"],
|
18
|
+
"properties": { "type": { "const": "MessageNotAck" } }
|
19
|
+
},
|
20
|
+
"then": {
|
21
|
+
"$ref": "../3.1.2/message_not_ack.json"
|
22
|
+
}
|
23
|
+
},
|
24
|
+
{
|
25
|
+
"if": {
|
26
|
+
"required" : ["type"],
|
27
|
+
"properties": { "type": { "const": "Version" } }
|
28
|
+
},
|
29
|
+
"then": {
|
30
|
+
"$ref": "../3.1.2/version.json"
|
31
|
+
}
|
32
|
+
},
|
33
|
+
{
|
34
|
+
"if": {
|
35
|
+
"required" : ["type"],
|
36
|
+
"properties": { "type": { "const": "AggregatedStatus" } }
|
37
|
+
},
|
38
|
+
"then": {
|
39
|
+
"$ref": "../3.1.2/aggregated_status.json"
|
40
|
+
}
|
41
|
+
},
|
42
|
+
{
|
43
|
+
"if": {
|
44
|
+
"required" : ["type"],
|
45
|
+
"properties": { "type": { "const": "AggregatedStatusRequest" } }
|
46
|
+
},
|
47
|
+
"then": {
|
48
|
+
"$ref": "../3.1.5/aggregated_status_request.json"
|
49
|
+
}
|
50
|
+
},
|
51
|
+
{
|
52
|
+
"if": {
|
53
|
+
"required" : ["type"],
|
54
|
+
"properties": { "type": { "const": "Watchdog" } }
|
55
|
+
},
|
56
|
+
"then": {
|
57
|
+
"$ref": "../3.1.2/watchdog.json"
|
58
|
+
}
|
59
|
+
},
|
60
|
+
{
|
61
|
+
"if": {
|
62
|
+
"required" : ["type"],
|
63
|
+
"properties": { "type": { "const": "Alarm" } }
|
64
|
+
},
|
65
|
+
"then": {
|
66
|
+
"$ref": "../3.2.0/alarm.json"
|
67
|
+
}
|
68
|
+
},
|
69
|
+
{
|
70
|
+
"if": {
|
71
|
+
"required" : ["type"],
|
72
|
+
"properties": { "type": { "const": "CommandRequest" } }
|
73
|
+
},
|
74
|
+
"then": {
|
75
|
+
"$ref": "../3.1.2/command_request.json"
|
76
|
+
}
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"if": {
|
80
|
+
"required" : ["type"],
|
81
|
+
"properties": { "type": { "const": "CommandResponse" } }
|
82
|
+
},
|
83
|
+
"then": {
|
84
|
+
"$ref": "../3.1.2/command_response.json"
|
85
|
+
}
|
86
|
+
},
|
87
|
+
{
|
88
|
+
"if": {
|
89
|
+
"required" : ["type"],
|
90
|
+
"properties": { "type": { "const": "StatusRequest" } }
|
91
|
+
},
|
92
|
+
"then": {
|
93
|
+
"$ref": "../3.1.2/status_request.json"
|
94
|
+
}
|
95
|
+
},
|
96
|
+
{
|
97
|
+
"if": {
|
98
|
+
"required" : ["type"],
|
99
|
+
"properties": { "type": { "const": "StatusResponse" } }
|
100
|
+
},
|
101
|
+
"then": {
|
102
|
+
"$ref": "../3.2.0/status_response.json"
|
103
|
+
}
|
104
|
+
},
|
105
|
+
{
|
106
|
+
"if": {
|
107
|
+
"required" : ["type"],
|
108
|
+
"properties": { "type": { "const": "StatusSubscribe" } }
|
109
|
+
},
|
110
|
+
"then": {
|
111
|
+
"$ref": "../3.1.5/status_subscribe.json"
|
112
|
+
}
|
113
|
+
},
|
114
|
+
{
|
115
|
+
"if": {
|
116
|
+
"required" : ["type"],
|
117
|
+
"properties": { "type": { "const": "StatusUnsubscribe" } }
|
118
|
+
},
|
119
|
+
"then": {
|
120
|
+
"$ref": "../3.1.2/status_unsubscribe.json"
|
121
|
+
}
|
122
|
+
},
|
123
|
+
{
|
124
|
+
"if": {
|
125
|
+
"required" : ["type"],
|
126
|
+
"properties": { "type": { "const": "StatusUpdate" } }
|
127
|
+
},
|
128
|
+
"then": {
|
129
|
+
"$ref": "../3.2.0/status_update.json"
|
130
|
+
}
|
131
|
+
}
|
132
|
+
]
|
133
|
+
}
|