rsmp_schema 0.5 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +23 -29
- data/lib/rsmp_schema/version.rb +1 -1
- data/rsmp_schema.gemspec +5 -6
- data/schemas/core/3.1.2/alarm.json +9 -0
- data/schemas/core/3.1.2/alarm_acknowledge.json +12 -0
- data/schemas/core/3.1.5/alarm.json +9 -0
- data/schemas/core/3.1.5/status_subscribe.json +1 -1
- data/schemas/core/3.2/alarm.json +11 -2
- data/schemas/core/3.2/alarm_acknowledge.json +11 -0
- data/schemas/core/3.2/alarm_issue.json +44 -0
- data/schemas/core/3.2/alarm_suspended_resumed.json +44 -0
- data/schemas/tlc/1.2/rsmp.json +1 -1
- metadata +17 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d56697bd07d0433d3c87794ba60633b668ccb4973e80efa8733a6990e8aed9cf
|
4
|
+
data.tar.gz: d781453ca631feac00eea1e3c03e4fd8cf9205415b3329ed24872b220baefbc9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a56ae1db79d6061a5afbd1bdd3c90d690e4ff4747c362755da9bfea43297e553d1eca2da77900b939cebac595f1c5c4b7e25775f2f4c0136c6466200745fbca6
|
7
|
+
data.tar.gz: 98cc8cb64e54023328fafc831686f7c7590f0ab61da5e0b4e74670f6b8611eb21a9b9c6b6ca0894dedbba6fa16da2dbbdfb1bee83ba08a9adbbb4b309f61f2ba
|
data/Gemfile.lock
CHANGED
@@ -1,55 +1,49 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rsmp_schema (0.5)
|
5
|
-
json_schemer (~>
|
6
|
-
thor (~> 1.
|
4
|
+
rsmp_schema (0.5.2)
|
5
|
+
json_schemer (~> 2.1.0)
|
6
|
+
thor (~> 1.3.0)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
11
|
diff-lcs (1.5.0)
|
12
|
-
ecma-re-validator (0.4.0)
|
13
|
-
regexp_parser (~> 2.2)
|
14
12
|
hana (1.3.7)
|
15
|
-
json_schemer (
|
16
|
-
ecma-re-validator (~> 0.3)
|
13
|
+
json_schemer (2.1.0)
|
17
14
|
hana (~> 1.3)
|
18
15
|
regexp_parser (~> 2.0)
|
19
16
|
simpleidn (~> 0.2)
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
rspec-
|
25
|
-
rspec-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
rspec-expectations (3.11.1)
|
17
|
+
rake (13.1.0)
|
18
|
+
regexp_parser (2.8.2)
|
19
|
+
rspec (3.12.0)
|
20
|
+
rspec-core (~> 3.12.0)
|
21
|
+
rspec-expectations (~> 3.12.0)
|
22
|
+
rspec-mocks (~> 3.12.0)
|
23
|
+
rspec-core (3.12.2)
|
24
|
+
rspec-support (~> 3.12.0)
|
25
|
+
rspec-expectations (3.12.3)
|
30
26
|
diff-lcs (>= 1.2.0, < 2.0)
|
31
|
-
rspec-support (~> 3.
|
32
|
-
rspec-mocks (3.
|
27
|
+
rspec-support (~> 3.12.0)
|
28
|
+
rspec-mocks (3.12.6)
|
33
29
|
diff-lcs (>= 1.2.0, < 2.0)
|
34
|
-
rspec-support (~> 3.
|
35
|
-
rspec-support (3.
|
30
|
+
rspec-support (~> 3.12.0)
|
31
|
+
rspec-support (3.12.1)
|
36
32
|
simpleidn (0.2.1)
|
37
33
|
unf (~> 0.1.4)
|
38
|
-
thor (1.
|
34
|
+
thor (1.3.0)
|
39
35
|
unf (0.1.4)
|
40
36
|
unf_ext
|
41
|
-
unf_ext (0.0.
|
42
|
-
uri_template (0.7.0)
|
37
|
+
unf_ext (0.0.9.1)
|
43
38
|
|
44
39
|
PLATFORMS
|
45
40
|
ruby
|
46
41
|
|
47
42
|
DEPENDENCIES
|
48
|
-
|
49
|
-
rake (~> 13.0.6)
|
43
|
+
rake (~> 13.1.0)
|
50
44
|
rsmp_schema!
|
51
|
-
rspec (~> 3.
|
52
|
-
rspec-expectations (~> 3.
|
45
|
+
rspec (~> 3.12.0)
|
46
|
+
rspec-expectations (~> 3.12.3)
|
53
47
|
|
54
48
|
BUNDLED WITH
|
55
|
-
2.4.
|
49
|
+
2.4.22
|
data/lib/rsmp_schema/version.rb
CHANGED
data/rsmp_schema.gemspec
CHANGED
@@ -30,11 +30,10 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
31
31
|
spec.require_paths = ["lib"]
|
32
32
|
|
33
|
-
spec.add_dependency "json_schemer", "~>
|
34
|
-
spec.add_dependency "thor", "~> 1.
|
33
|
+
spec.add_dependency "json_schemer", "~> 2.1.0"
|
34
|
+
spec.add_dependency "thor", "~> 1.3.0"
|
35
35
|
|
36
|
-
spec.add_development_dependency "
|
37
|
-
spec.add_development_dependency "
|
38
|
-
spec.add_development_dependency "rspec", "~> 3.
|
39
|
-
spec.add_development_dependency "rspec-expectations", "~> 3.11.0"
|
36
|
+
spec.add_development_dependency "rake", "~> 13.1.0"
|
37
|
+
spec.add_development_dependency "rspec", "~> 3.12.0"
|
38
|
+
spec.add_development_dependency "rspec-expectations", "~> 3.12.3"
|
40
39
|
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" ],
|
data/schemas/core/3.2/alarm.json
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
"aSp" : { "enum" : [ "Issue"] }
|
22
22
|
}
|
23
23
|
},
|
24
|
-
"then": { "$ref": "../3.
|
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.
|
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
|
+
}
|
data/schemas/tlc/1.2/rsmp.json
CHANGED
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:
|
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
|
+
date: 2023-11-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json_schemer
|
@@ -16,84 +16,70 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 2.1.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 2.1.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: thor
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 1.
|
33
|
+
version: 1.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 1.
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: bundler
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: 2.3.19
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: 2.3.19
|
40
|
+
version: 1.3.0
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rake
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: 13.0
|
47
|
+
version: 13.1.0
|
62
48
|
type: :development
|
63
49
|
prerelease: false
|
64
50
|
version_requirements: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: 13.0
|
54
|
+
version: 13.1.0
|
69
55
|
- !ruby/object:Gem::Dependency
|
70
56
|
name: rspec
|
71
57
|
requirement: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: 3.
|
61
|
+
version: 3.12.0
|
76
62
|
type: :development
|
77
63
|
prerelease: false
|
78
64
|
version_requirements: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: 3.
|
68
|
+
version: 3.12.0
|
83
69
|
- !ruby/object:Gem::Dependency
|
84
70
|
name: rspec-expectations
|
85
71
|
requirement: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: 3.
|
75
|
+
version: 3.12.3
|
90
76
|
type: :development
|
91
77
|
prerelease: false
|
92
78
|
version_requirements: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: 3.
|
82
|
+
version: 3.12.3
|
97
83
|
description: Validate RSMP message against RSMP JSON Schema. Support validating against
|
98
84
|
core and different SXL's, in different versions.
|
99
85
|
email:
|
@@ -124,6 +110,7 @@ files:
|
|
124
110
|
- rsmp_schema.gemspec
|
125
111
|
- schemas/core/3.1.2/aggregated_status.json
|
126
112
|
- schemas/core/3.1.2/alarm.json
|
113
|
+
- schemas/core/3.1.2/alarm_acknowledge.json
|
127
114
|
- schemas/core/3.1.2/alarm_issue.json
|
128
115
|
- schemas/core/3.1.2/alarm_suspend_resume.json
|
129
116
|
- schemas/core/3.1.2/alarm_suspended_resumed.json
|
@@ -156,6 +143,9 @@ files:
|
|
156
143
|
- schemas/core/3.2.1/core.json
|
157
144
|
- schemas/core/3.2.1/rsmp.json
|
158
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
|
159
149
|
- schemas/core/3.2/core.json
|
160
150
|
- schemas/core/3.2/rsmp.json
|
161
151
|
- schemas/core/3.2/status_response.json
|
@@ -886,7 +876,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
886
876
|
- !ruby/object:Gem::Version
|
887
877
|
version: '0'
|
888
878
|
requirements: []
|
889
|
-
rubygems_version: 3.4.
|
879
|
+
rubygems_version: 3.4.22
|
890
880
|
signing_key:
|
891
881
|
specification_version: 4
|
892
882
|
summary: Validate RSMP message against RSMP JSON Schema.
|