rsmp_schema 0.5.1 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c72738e0163582165219b6739632af5b7352bc2e850d40d436c775bee9251ccb
4
- data.tar.gz: 0f39e6046772ff3d3c455ae26741411e80a75e7d43eca97a590084241e48faac
3
+ metadata.gz: 3a691ae7bb6527605f2ccee89b3826ff2cba1d87d788c412c9f7841c3d377d4a
4
+ data.tar.gz: ac7ec47c472f4a4423e207878eca887d8c895235e6bcb3215975553233df428e
5
5
  SHA512:
6
- metadata.gz: 107f7a7078abe046f782dd6bb15db8cbdefe14e3b6d377b6ea50db6e67118438a8813b5bf0c374f27f4b580f23e5a70677a3f30e76c3962895da6a1d7630c1bc
7
- data.tar.gz: ee079987f915f6f1f2f649d03ab23695f67d271349284653a8e734f33e2f30684a4acdcd2e1f1f9118ff888601f7f2927d5d22301c42fe2dc45d0b401f536744
6
+ metadata.gz: c42a89bd38fe2e58c705db83d7638d5b6353a15524760ccc33d3af32634e5063509577da4da74c778e00a9451e43f15f1f915e987b0cb062a8f941a9d63402df
7
+ data.tar.gz: 3bef2fd0a7300f1b105948017ec88cc922c270288ff000506f49cc3b120acebe837b90386046a3be6bd4d891c7db50fe2838f6af3d0a5662ad6cf5336871342b
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.3)
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.3"
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
+ {
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
+ }
@@ -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.3
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