rsmp_schema 0.8.3 → 0.8.4

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: dcef34f9d78dededa6386a554870bfd1bcf55a937d55560d2e72ea7df840da96
4
- data.tar.gz: 5d76a6f3181628203c4c3b1a214471e3308721a03c5128830d2cd0cb24fb24ed
3
+ metadata.gz: f1058318d7f17a3ea50fcfe445d890434e5609a0768f886b2ad64ffb6fa051f0
4
+ data.tar.gz: 4d48c560d2e04cdda134755359a61ef58524ac99da05a2eb1b418a68ddc32547
5
5
  SHA512:
6
- metadata.gz: 41cb4f5735cd3f0341253531bef42580adbc689e86678b31f4db649cd4f43058858b79f3ff7610d90f46a3f55dba81c5ac1003c5f0046a4b71a1bee108f62f26
7
- data.tar.gz: 0e24d97974b92345f15989f55510462cdea2787783df51504760a34459569d145307ef80b8303e72d18bdf6dbdc2ebc8dcf9c88a9f6c4b9b6d29cfd102608c7b
6
+ metadata.gz: 85cc6950fb290d57af14c82fa3ea3deafb160cb75c64eae3baab09e1dccea70f64151d9f9970d622af1c122fbdda1ea02154a947d9ce3fdd55271af7299c6883
7
+ data.tar.gz: 9dd29cf2d7f4a45debdb40859124ebb8691d837d902c30af197d23c8ee95cc19698bb517a8481aca65cf6f7bf1e9fc914c3e4316d019b365333db053a564adbf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp_schema (0.8.3)
4
+ rsmp_schema (0.8.4)
5
5
  json_schemer (~> 2.3.0)
6
6
  thor (~> 1.3.1)
7
7
 
@@ -1,5 +1,5 @@
1
1
  module RSMP
2
2
  module Schema
3
- VERSION = "0.8.3"
3
+ VERSION = "0.8.4"
4
4
  end
5
5
  end
@@ -17,7 +17,7 @@
17
17
  "minItems": 8,
18
18
  "maxItems": 8,
19
19
  "items" : {
20
- "type" : "boolean"
20
+ "type" : "string"
21
21
  }
22
22
  }
23
23
  },
@@ -0,0 +1,25 @@
1
+ {
2
+ "title" : "Aggregated Status",
3
+ "description" : "Aggregated status message",
4
+ "properties" : {
5
+ "mId" : { "$ref": "../3.1.2/definitions.json#/message_id" },
6
+ "aSTS" : { "$ref": "../3.1.2/definitions.json#/timestamp" },
7
+ "fP" : {
8
+ "description" : "Functional position",
9
+ "type" : "string, null"
10
+ },
11
+ "fS" : {
12
+ "description" : "Functional position",
13
+ "type" : "string, null"
14
+ },
15
+ "se" : {
16
+ "type" : "array",
17
+ "minItems": 8,
18
+ "maxItems": 8,
19
+ "items" : {
20
+ "type" : "boolean"
21
+ }
22
+ }
23
+ },
24
+ "required" : [ "mId", "aSTS", "fP", "fS", "se" ]
25
+ }
@@ -36,7 +36,7 @@
36
36
  "properties": { "type": { "const": "AggregatedStatus" } }
37
37
  },
38
38
  "then": {
39
- "$ref": "../3.1.2/aggregated_status.json"
39
+ "$ref": "aggregated_status.json"
40
40
  }
41
41
  },
42
42
  {
@@ -0,0 +1,65 @@
1
+ {
2
+ "title" : "Alarm",
3
+ "description" : "Alarm messsage",
4
+ "properties" : {
5
+ "mId" : { "$ref": "../3.1.2/definitions.json#/message_id" },
6
+ "cId" : { "$ref": "../3.1.2/definitions.json#/component_id" },
7
+ "aCId" : { "$ref": "../3.1.2/definitions.json#/alarm_code" },
8
+ "xACId" : { "description" : "External alarm code id", "type" : "string" },
9
+ "aSp" : {
10
+ "description" : "Alarm specialization",
11
+ "type" : "string",
12
+ "enum" : [ "Issue", "Acknowledge", "Suspend", "Resume",
13
+ "issue", "acknowledge" ]
14
+ }
15
+ },
16
+ "required" : [ "aSp"],
17
+ "allOf" : [
18
+ {
19
+ "if": {
20
+ "required" : [ "aSp" ],
21
+ "properties" : {
22
+ "aSp" : { "enum" : [ "Issue",
23
+ "issue"] }
24
+ }
25
+ },
26
+ "then": { "$ref": "../3.1.2/alarm_issue.json" }
27
+ },
28
+ {
29
+ "if": {
30
+ "allOf" : [
31
+ {
32
+ "required" : [ "aSp" ],
33
+ "properties" : {
34
+ "aSp" : { "enum" : [ "Suspend", "Resume"] }
35
+ }
36
+ },
37
+ {
38
+ "not": { "required" : [ "sS" ] }
39
+ }
40
+ ]
41
+ },
42
+ "then": { "$ref": "../3.1.2/alarm_suspend_resume.json" }
43
+ },
44
+ {
45
+ "if": {
46
+ "required" : [ "aSp", "sS" ],
47
+ "properties" : {
48
+ "aSp" : { "enum" : [ "Suspend", "Resume"] },
49
+ "sS" : { "enum" : [ "suspended", "notSuspended",
50
+ "Suspended", "NotSuspended" ] }
51
+ }
52
+ },
53
+ "then": { "$ref": "../3.1.2/alarm_suspended_resumed.json" }
54
+ },
55
+ {
56
+ "if": {
57
+ "required" : [ "aSp" ],
58
+ "properties" : {
59
+ "aSp" : { "enum" : [ "Acknowledge"] }
60
+ }
61
+ },
62
+ "then": { "$ref": "../3.1.2/alarm_acknowledge.json" }
63
+ }
64
+ ]
65
+ }
@@ -1,3 +1,124 @@
1
1
  {
2
- "$ref": "../3.1.3/rsmp.json" // no changes from 3.1.3
2
+ "allOf": [
3
+ {
4
+ "$ref": "../3.1.2/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.3/aggregated_status.json"
40
+ }
41
+ },
42
+ {
43
+ "if": {
44
+ "required" : ["type"],
45
+ "properties": { "type": { "const": "Watchdog" } }
46
+ },
47
+ "then": {
48
+ "$ref": "../3.1.2/watchdog.json"
49
+ }
50
+ },
51
+ {
52
+ "if": {
53
+ "required" : ["type"],
54
+ "properties": { "type": { "const": "Alarm" } }
55
+ },
56
+ "then": {
57
+ "$ref": "../3.1.4/alarm.json"
58
+ }
59
+ },
60
+ {
61
+ "if": {
62
+ "required" : ["type"],
63
+ "properties": { "type": { "const": "CommandRequest" } }
64
+ },
65
+ "then": {
66
+ "$ref": "../3.1.2/command_request.json"
67
+ }
68
+ },
69
+ {
70
+ "if": {
71
+ "required" : ["type"],
72
+ "properties": { "type": { "const": "CommandResponse" } }
73
+ },
74
+ "then": {
75
+ "$ref": "../3.1.2/command_response.json"
76
+ }
77
+ },
78
+ {
79
+ "if": {
80
+ "required" : ["type"],
81
+ "properties": { "type": { "const": "StatusRequest" } }
82
+ },
83
+ "then": {
84
+ "$ref": "../3.1.2/status_request.json"
85
+ }
86
+ },
87
+ {
88
+ "if": {
89
+ "required" : ["type"],
90
+ "properties": { "type": { "const": "StatusResponse" } }
91
+ },
92
+ "then": {
93
+ "$ref": "../3.1.3/status_response.json"
94
+ }
95
+ },
96
+ {
97
+ "if": {
98
+ "required" : ["type"],
99
+ "properties": { "type": { "const": "StatusSubscribe" } }
100
+ },
101
+ "then": {
102
+ "$ref": "../3.1.2/status_subscribe.json"
103
+ }
104
+ },
105
+ {
106
+ "if": {
107
+ "required" : ["type"],
108
+ "properties": { "type": { "const": "StatusUnsubscribe" } }
109
+ },
110
+ "then": {
111
+ "$ref": "../3.1.2/status_unsubscribe.json"
112
+ }
113
+ },
114
+ {
115
+ "if": {
116
+ "required" : ["type"],
117
+ "properties": { "type": { "const": "StatusUpdate" } }
118
+ },
119
+ "then": {
120
+ "$ref": "../3.1.3/status_update.json"
121
+ }
122
+ }
123
+ ]
3
124
  }
@@ -10,7 +10,7 @@
10
10
  "description" : "Alarm specialization",
11
11
  "type" : "string",
12
12
  "enum" : [ "Issue", "Acknowledge", "Suspend", "Resume", "Request",
13
- "issue", "acknowledge", "suspend", "resume", "request" ]
13
+ "issue", "acknowledge", "request" ]
14
14
  }
15
15
  },
16
16
  "required" : [ "aSp"],
@@ -31,8 +31,7 @@
31
31
  {
32
32
  "required" : [ "aSp" ],
33
33
  "properties" : {
34
- "aSp" : { "enum" : [ "Suspend", "Resume",
35
- "suspend", "resume"] }
34
+ "aSp" : { "enum" : [ "Suspend", "Resume"] }
36
35
  }
37
36
  },
38
37
  {
@@ -46,8 +45,7 @@
46
45
  "if": {
47
46
  "required" : [ "aSp", "sS" ],
48
47
  "properties" : {
49
- "aSp" : { "enum" : [ "Suspend", "Resume",
50
- "suspend", "resume"] },
48
+ "aSp" : { "enum" : [ "Suspend", "Resume"] },
51
49
  "sS" : { "enum" : [ "suspended", "notSuspended",
52
50
  "Suspended", "NotSuspended" ] }
53
51
  }
@@ -36,7 +36,7 @@
36
36
  "properties": { "type": { "const": "AggregatedStatus" } }
37
37
  },
38
38
  "then": {
39
- "$ref": "../3.1.2/aggregated_status.json"
39
+ "$ref": "../3.1.3/aggregated_status.json"
40
40
  }
41
41
  },
42
42
  {
@@ -36,7 +36,7 @@
36
36
  "properties": { "type": { "const": "AggregatedStatus" } }
37
37
  },
38
38
  "then": {
39
- "$ref": "../3.1.2/aggregated_status.json"
39
+ "$ref": "../3.1.3/aggregated_status.json"
40
40
  }
41
41
  },
42
42
  {
@@ -36,7 +36,7 @@
36
36
  "properties": { "type": { "const": "AggregatedStatus" } }
37
37
  },
38
38
  "then": {
39
- "$ref": "../3.1.2/aggregated_status.json"
39
+ "$ref": "../3.1.3/aggregated_status.json"
40
40
  }
41
41
  },
42
42
  {
@@ -36,7 +36,7 @@
36
36
  "properties": { "type": { "const": "AggregatedStatus" } }
37
37
  },
38
38
  "then": {
39
- "$ref": "../3.1.2/aggregated_status.json"
39
+ "$ref": "../3.1.3/aggregated_status.json"
40
40
  }
41
41
  },
42
42
  {
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.8.3
4
+ version: 0.8.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emil Tin
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-09-12 00:00:00.000000000 Z
11
+ date: 2024-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schemer
@@ -129,9 +129,11 @@ files:
129
129
  - schemas/core/3.1.2/status_update.json
130
130
  - schemas/core/3.1.2/version.json
131
131
  - schemas/core/3.1.2/watchdog.json
132
+ - schemas/core/3.1.3/aggregated_status.json
132
133
  - schemas/core/3.1.3/rsmp.json
133
134
  - schemas/core/3.1.3/status_response.json
134
135
  - schemas/core/3.1.3/status_update.json
136
+ - schemas/core/3.1.4/alarm.json
135
137
  - schemas/core/3.1.4/rsmp.json
136
138
  - schemas/core/3.1.5/aggregated_status_request.json
137
139
  - schemas/core/3.1.5/alarm.json