rsmp_schema 0.6.0 → 0.7.0

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: 26b211065c7c90beae96f574d33dcc03a1bb55fdfe5e91b4a0a65e69cefd4a02
4
- data.tar.gz: 64dfc50cf0e66d9ab485a091f5f03b352f82b2ee8528d1b27d3863be2954e7ad
3
+ metadata.gz: 80ee43a9c5a077e3cbd2bc73ec372dfda6afedc990734a4098d8c113e46c93c0
4
+ data.tar.gz: 15bdb8670621917247d5c7a4e9fdc76b5ad4af8926c5f5f84824d05f46c23d50
5
5
  SHA512:
6
- metadata.gz: cda9a42c4cbafe91b0469428e5870ad0028c30509854d968580048a6539e92dc244a215ccb124b97d5b560d19fbaeb91d308ae29ad1370f696e43aa5757f1ccc
7
- data.tar.gz: ae3fc23d082eae7e9136bcc40e2863c1e2df5cb85e8c7679d1ab733d4008232ecc08deb772ee991458c24cea852ee7c24793962e21d2d97cc695ed05f0faab44
6
+ metadata.gz: a2410215ae0fcc8aca6022ff59c9f43a4223b38f4142251ec737b68d2b13baae63763cb85f93ce137e353db3dfcd564c227f19c4a7ab5285e90a2b0e533fb1ff
7
+ data.tar.gz: 7ef596b859a54bd47e79b0ff8efca265ce37ca64221add1f0c72c2e37bbef01c66e55350fc96f8511f4f1d181e42840094d60d79949e43ebd52ad25138a6ad70
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rsmp_schema (0.6.0)
4
+ rsmp_schema (0.7.0)
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.6.0"
3
+ VERSION = "0.7.0"
4
4
  end
5
5
  end
@@ -0,0 +1,39 @@
1
+ {
2
+ "$schema" : "http://json-schema.org/draft-07/schema#",
3
+ "name" : "core",
4
+ "description" : "Core",
5
+ "version" : "3.2.2",
6
+ "type" : "object",
7
+ "allOf" : [
8
+ {
9
+ "properties" : {
10
+ "mType" : {
11
+ "description" : "Supported RSMP versions",
12
+ "type" : "string",
13
+ "const" : "rSMsg"
14
+ },
15
+ "type" : {
16
+ "description" : "Type of RMSP message",
17
+ "type" : "string",
18
+ "enum" : [
19
+ "MessageAck",
20
+ "MessageNotAck",
21
+ "Version",
22
+ "AggregatedStatus",
23
+ "AggregatedStatusRequest",
24
+ "Watchdog",
25
+ "Alarm",
26
+ "CommandRequest",
27
+ "CommandResponse",
28
+ "StatusRequest",
29
+ "StatusResponse",
30
+ "StatusSubscribe",
31
+ "StatusUnsubscribe",
32
+ "StatusUpdate"
33
+ ]
34
+ }
35
+ },
36
+ "required" : [ "mType", "type" ]
37
+ }
38
+ ]
39
+ }
@@ -0,0 +1,133 @@
1
+ {
2
+ "allOf": [
3
+ {
4
+ "$ref": "../3.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.2/aggregated_status.json"
40
+ }
41
+ },
42
+ {
43
+ "if": {
44
+ "required" : ["type"],
45
+ "properties": { "type": { "const": "AggregatedStatusRequest" } }
46
+ },
47
+ "then": {
48
+ "$ref": "../3.1.5/aggregated_status_request.json"
49
+ }
50
+ },
51
+ {
52
+ "if": {
53
+ "required" : ["type"],
54
+ "properties": { "type": { "const": "Watchdog" } }
55
+ },
56
+ "then": {
57
+ "$ref": "../3.1.2/watchdog.json"
58
+ }
59
+ },
60
+ {
61
+ "if": {
62
+ "required" : ["type"],
63
+ "properties": { "type": { "const": "Alarm" } }
64
+ },
65
+ "then": {
66
+ "$ref": "../3.2/alarm.json"
67
+ }
68
+ },
69
+ {
70
+ "if": {
71
+ "required" : ["type"],
72
+ "properties": { "type": { "const": "CommandRequest" } }
73
+ },
74
+ "then": {
75
+ "$ref": "../3.1.2/command_request.json"
76
+ }
77
+ },
78
+ {
79
+ "if": {
80
+ "required" : ["type"],
81
+ "properties": { "type": { "const": "CommandResponse" } }
82
+ },
83
+ "then": {
84
+ "$ref": "../3.1.2/command_response.json"
85
+ }
86
+ },
87
+ {
88
+ "if": {
89
+ "required" : ["type"],
90
+ "properties": { "type": { "const": "StatusRequest" } }
91
+ },
92
+ "then": {
93
+ "$ref": "../3.1.2/status_request.json"
94
+ }
95
+ },
96
+ {
97
+ "if": {
98
+ "required" : ["type"],
99
+ "properties": { "type": { "const": "StatusResponse" } }
100
+ },
101
+ "then": {
102
+ "$ref": "../3.2/status_response.json"
103
+ }
104
+ },
105
+ {
106
+ "if": {
107
+ "required" : ["type"],
108
+ "properties": { "type": { "const": "StatusSubscribe" } }
109
+ },
110
+ "then": {
111
+ "$ref": "../3.1.5/status_subscribe.json"
112
+ }
113
+ },
114
+ {
115
+ "if": {
116
+ "required" : ["type"],
117
+ "properties": { "type": { "const": "StatusUnsubscribe" } }
118
+ },
119
+ "then": {
120
+ "$ref": "../3.1.2/status_unsubscribe.json"
121
+ }
122
+ },
123
+ {
124
+ "if": {
125
+ "required" : ["type"],
126
+ "properties": { "type": { "const": "StatusUpdate" } }
127
+ },
128
+ "then": {
129
+ "$ref": "../3.2/status_update.json"
130
+ }
131
+ }
132
+ ]
133
+ }
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.6.0
4
+ version: 0.7.0
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-06-11 00:00:00.000000000 Z
11
+ date: 2024-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json_schemer
@@ -142,6 +142,8 @@ files:
142
142
  - schemas/core/3.1.5/status_subscribe.json
143
143
  - schemas/core/3.2.1/core.json
144
144
  - schemas/core/3.2.1/rsmp.json
145
+ - schemas/core/3.2.2/core.json
146
+ - schemas/core/3.2.2/rsmp.json
145
147
  - schemas/core/3.2/alarm.json
146
148
  - schemas/core/3.2/alarm_acknowledge.json
147
149
  - schemas/core/3.2/alarm_issue.json