rsmp_schema 0.8.2 → 0.8.4
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/lib/rsmp_schema/version.rb +1 -1
- data/schemas/core/3.1.2/aggregated_status.json +1 -1
- data/schemas/core/3.1.2/alarm_suspended_resumed.json +1 -1
- data/schemas/core/3.1.3/aggregated_status.json +25 -0
- data/schemas/core/3.1.3/rsmp.json +1 -1
- data/schemas/core/3.1.4/alarm.json +65 -0
- data/schemas/core/3.1.4/rsmp.json +122 -1
- data/schemas/core/3.1.5/alarm.json +3 -5
- data/schemas/core/3.1.5/rsmp.json +1 -1
- data/schemas/core/3.2.0/alarm.json +1 -1
- data/schemas/core/3.2.0/rsmp.json +1 -1
- data/schemas/core/3.2.1/rsmp.json +1 -1
- data/schemas/core/3.2.2/rsmp.json +1 -1
- metadata +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f1058318d7f17a3ea50fcfe445d890434e5609a0768f886b2ad64ffb6fa051f0
|
4
|
+
data.tar.gz: 4d48c560d2e04cdda134755359a61ef58524ac99da05a2eb1b418a68ddc32547
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 85cc6950fb290d57af14c82fa3ea3deafb160cb75c64eae3baab09e1dccea70f64151d9f9970d622af1c122fbdda1ea02154a947d9ce3fdd55271af7299c6883
|
7
|
+
data.tar.gz: 9dd29cf2d7f4a45debdb40859124ebb8691d837d902c30af197d23c8ee95cc19698bb517a8481aca65cf6f7bf1e9fc914c3e4316d019b365333db053a564adbf
|
data/Gemfile.lock
CHANGED
data/lib/rsmp_schema/version.rb
CHANGED
@@ -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
|
+
}
|
@@ -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
|
-
"
|
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", "
|
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
|
}
|
@@ -44,7 +44,7 @@
|
|
44
44
|
"required" : [ "aSp", "sS" ],
|
45
45
|
"properties" : {
|
46
46
|
"aSp" : { "enum" : [ "Suspend", "Resume"] },
|
47
|
-
"sS" : { "enum" : [ "
|
47
|
+
"sS" : { "enum" : [ "Suspended", "notSuspended"] }
|
48
48
|
}
|
49
49
|
},
|
50
50
|
"then": { "$ref": "../3.2.0/alarm_suspended_resumed.json" }
|
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.
|
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-
|
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
|
@@ -975,7 +977,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
975
977
|
- !ruby/object:Gem::Version
|
976
978
|
version: '0'
|
977
979
|
requirements: []
|
978
|
-
rubygems_version: 3.
|
980
|
+
rubygems_version: 3.5.9
|
979
981
|
signing_key:
|
980
982
|
specification_version: 4
|
981
983
|
summary: Validate RSMP message against RSMP JSON Schema.
|