rsmp_schema 0.5.1 → 0.5.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c72738e0163582165219b6739632af5b7352bc2e850d40d436c775bee9251ccb
4
- data.tar.gz: 0f39e6046772ff3d3c455ae26741411e80a75e7d43eca97a590084241e48faac
3
+ metadata.gz: d56697bd07d0433d3c87794ba60633b668ccb4973e80efa8733a6990e8aed9cf
4
+ data.tar.gz: d781453ca631feac00eea1e3c03e4fd8cf9205415b3329ed24872b220baefbc9
5
5
  SHA512:
6
- metadata.gz: 107f7a7078abe046f782dd6bb15db8cbdefe14e3b6d377b6ea50db6e67118438a8813b5bf0c374f27f4b580f23e5a70677a3f30e76c3962895da6a1d7630c1bc
7
- data.tar.gz: ee079987f915f6f1f2f649d03ab23695f67d271349284653a8e734f33e2f30684a4acdcd2e1f1f9118ff888601f7f2927d5d22301c42fe2dc45d0b401f536744
6
+ metadata.gz: a56ae1db79d6061a5afbd1bdd3c90d690e4ff4747c362755da9bfea43297e553d1eca2da77900b939cebac595f1c5c4b7e25775f2f4c0136c6466200745fbca6
7
+ data.tar.gz: 98cc8cb64e54023328fafc831686f7c7590f0ab61da5e0b4e74670f6b8611eb21a9b9c6b6ca0894dedbba6fa16da2dbbdfb1bee83ba08a9adbbb4b309f61f2ba
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp_schema (0.5.1)
4
+ rsmp_schema (0.5.2)
5
5
  json_schemer (~> 2.1.0)
6
6
  thor (~> 1.3.0)
7
7
 
@@ -1,5 +1,5 @@
1
1
  module RSMP
2
2
  module Schema
3
- VERSION = "0.5.1"
3
+ VERSION = "0.5.2"
4
4
  end
5
5
  end
@@ -53,6 +53,15 @@
53
53
  }
54
54
  },
55
55
  "then": { "$ref": "alarm_suspended_resumed.json" }
56
+ },
57
+ {
58
+ "if": {
59
+ "required" : [ "aSp" ],
60
+ "properties" : {
61
+ "aSp" : { "enum" : [ "Acknowledge"] }
62
+ }
63
+ },
64
+ "then": { "$ref": "alarm_acknowledge.json" }
56
65
  }
57
66
  ]
58
67
  }
@@ -0,0 +1,12 @@
1
+ {
2
+ "properties" : {
3
+ "ack" : {
4
+ "description" : "Acknowledgement",
5
+ "type" : "string",
6
+ "enum" : [ "Acknowledged", "notAcknowledged",
7
+ "acknowledged", "NotAcknowledged" ]
8
+ },
9
+ "aTs" : { "$ref": "definitions.json#/timestamp" }
10
+ },
11
+ "required" : [ "mId", "cId", "aCId", "xACId", "aSp", "aTs" ]
12
+ }
@@ -54,6 +54,15 @@
54
54
  },
55
55
  "then": { "$ref": "../3.1.2/alarm_suspended_resumed.json" }
56
56
  },
57
+ {
58
+ "if": {
59
+ "required" : [ "aSp" ],
60
+ "properties" : {
61
+ "aSp" : { "enum" : [ "Acknowledge"] }
62
+ }
63
+ },
64
+ "then": { "$ref": "../3.1.2/alarm_acknowledge.json" }
65
+ },
57
66
  {
58
67
  "if": {
59
68
  "required" : [ "aSp" ],
@@ -21,7 +21,7 @@
21
21
  "aSp" : { "enum" : [ "Issue"] }
22
22
  }
23
23
  },
24
- "then": { "$ref": "../3.1.2/alarm_issue.json" }
24
+ "then": { "$ref": "../3.2/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.1.2/alarm_suspended_resumed.json" }
50
+ "then": { "$ref": "../3.2/alarm_suspended_resumed.json" }
51
51
  },
52
52
  {
53
53
  "if": {
@@ -57,6 +57,15 @@
57
57
  }
58
58
  },
59
59
  "then": { "$ref": "../3.1.5/alarm_request.json" }
60
+ },
61
+ {
62
+ "if": {
63
+ "required" : [ "aSp" ],
64
+ "properties" : {
65
+ "aSp" : { "enum" : [ "Acknowledge"] }
66
+ }
67
+ },
68
+ "then": { "$ref": "../3.2/alarm_acknowledge.json" }
60
69
  }
61
70
  ]
62
71
  }
@@ -0,0 +1,11 @@
1
+ {
2
+ "properties" : {
3
+ "ack" : {
4
+ "description" : "Acknowledgement",
5
+ "type" : "string",
6
+ "enum" : [ "Acknowledged", "notAcknowledged" ]
7
+ },
8
+ "aTs" : { "$ref": "../3.1.2/definitions.json#/timestamp" }
9
+ },
10
+ "required" : [ "mId", "cId", "aCId", "xACId", "aSp", "aTs" ]
11
+ }
@@ -0,0 +1,44 @@
1
+ {
2
+ "properties" : {
3
+ "ack" : {
4
+ "description" : "Acknowledgement",
5
+ "type" : "string",
6
+ "enum" : [ "Acknowledged", "notAcknowledged" ]
7
+ },
8
+ "aS" : {
9
+ "description" : "Active status",
10
+ "type" : "string",
11
+ "enum" : [ "inActive", "Active" ]
12
+ },
13
+ "sS" : {
14
+ "description" : "Suspend status",
15
+ "type" : "string",
16
+ "enum" : [ "suspended", "notSuspended" ]
17
+ },
18
+ "aTs" : { "$ref": "../3.1.2/definitions.json#/timestamp" },
19
+ "cat" : {
20
+ "description" : "Category",
21
+ "type" : "string",
22
+ "enum" : [ "T", "D" ]
23
+ },
24
+ "pri" : {
25
+ "description" : "Priority",
26
+ "type" : "string",
27
+ "enum" : [ "1", "2", "3" ]
28
+ },
29
+ "rvs" : {
30
+ "description" : "Return values",
31
+ "type" : "array",
32
+ "items" : {
33
+ "type" : "object",
34
+ "properties": {
35
+ "n" : { "description" : "Unique reference of the value", "type" : "string" },
36
+ "v" : { "description" : "Value", "type" : "string" }
37
+ },
38
+ "required" : [ "n", "v" ],
39
+ "additionalProperties": false
40
+ }
41
+ }
42
+ },
43
+ "required" : [ "mId", "cId", "aCId", "xACId", "aSp", "ack", "aS", "aTs", "sS", "cat", "pri", "rvs" ]
44
+ }
@@ -0,0 +1,44 @@
1
+ x{
2
+ "properties" : {
3
+ "ack" : {
4
+ "description" : "Acknowledgement",
5
+ "type" : "string",
6
+ "enum" : [ "Acknowledged", "notAcknowledged" ]
7
+ },
8
+ "aS" : {
9
+ "description" : "Active status",
10
+ "type" : "string",
11
+ "enum" : [ "inActive", "Active" ]
12
+ },
13
+ "sS" : {
14
+ "description" : "Suspend status",
15
+ "type" : "string",
16
+ "enum" : [ "Suspended", "notSuspended" ]
17
+ },
18
+ "aTs" : { "$ref": "definitions.json#/timestamp" },
19
+ "cat" : {
20
+ "description" : "Category",
21
+ "type" : "string",
22
+ "enum" : [ "T", "D" ]
23
+ },
24
+ "pri" : {
25
+ "description" : "Priority",
26
+ "type" : "string",
27
+ "enum" : [ "1", "2", "3" ]
28
+ },
29
+ "rvs" : {
30
+ "description" : "Return values",
31
+ "type" : "array",
32
+ "items" : {
33
+ "type" : "object",
34
+ "properties": {
35
+ "n" : { "description" : "Unique reference of the value", "type" : "string" },
36
+ "v" : { "description" : "Value", "type" : "string" }
37
+ },
38
+ "required" : [ "n", "v" ],
39
+ "additionalProperties": false
40
+ }
41
+ }
42
+ },
43
+ "required" : [ "mId", "cId", "aCId", "xACId", "aSp", "ack", "aS", "aTs", "sS", "cat", "pri", "rvs" ]
44
+ }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name" : "tlc",
3
3
  "description" : "Traffic Light Controllers",
4
- "version" : "1.2",
4
+ "version" : 1.2,
5
5
  "allOf" : [
6
6
  {
7
7
  "if" : {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rsmp_schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.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: 2023-11-21 00:00:00.000000000 Z
11
+ date: 2023-11-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schemer
@@ -110,6 +110,7 @@ files:
110
110
  - rsmp_schema.gemspec
111
111
  - schemas/core/3.1.2/aggregated_status.json
112
112
  - schemas/core/3.1.2/alarm.json
113
+ - schemas/core/3.1.2/alarm_acknowledge.json
113
114
  - schemas/core/3.1.2/alarm_issue.json
114
115
  - schemas/core/3.1.2/alarm_suspend_resume.json
115
116
  - schemas/core/3.1.2/alarm_suspended_resumed.json
@@ -142,6 +143,9 @@ files:
142
143
  - schemas/core/3.2.1/core.json
143
144
  - schemas/core/3.2.1/rsmp.json
144
145
  - schemas/core/3.2/alarm.json
146
+ - schemas/core/3.2/alarm_acknowledge.json
147
+ - schemas/core/3.2/alarm_issue.json
148
+ - schemas/core/3.2/alarm_suspended_resumed.json
145
149
  - schemas/core/3.2/core.json
146
150
  - schemas/core/3.2/rsmp.json
147
151
  - schemas/core/3.2/status_response.json