rsmp_schema 0.4.5 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rspec.yaml +1 -1
- data/.tool-versions +1 -0
- data/Gemfile.lock +23 -29
- data/lib/rsmp_schema/schema.rb +6 -3
- data/lib/rsmp_schema/version.rb +1 -1
- data/rsmp_schema.gemspec +5 -6
- data/schemas/core/3.1.5/status_subscribe.json +1 -1
- data/schemas/core/3.2/status_response.json +1 -1
- data/schemas/core/3.2.1/core.json +39 -0
- data/schemas/core/3.2.1/rsmp.json +133 -0
- data/schemas/tlc/1.2/alarms/A0001.json +3 -0
- data/schemas/tlc/1.2/alarms/A0002.json +3 -0
- data/schemas/tlc/1.2/alarms/A0003.json +3 -0
- data/schemas/tlc/1.2/alarms/A0004.json +3 -0
- data/schemas/tlc/1.2/alarms/A0005.json +3 -0
- data/schemas/tlc/1.2/alarms/A0006.json +3 -0
- data/schemas/tlc/1.2/alarms/A0007.json +59 -0
- data/schemas/tlc/1.2/alarms/A0008.json +61 -0
- data/schemas/tlc/1.2/alarms/A0009.json +3 -0
- data/schemas/tlc/1.2/alarms/A0010.json +3 -0
- data/schemas/tlc/1.2/alarms/A0101.json +3 -0
- data/schemas/tlc/1.2/alarms/A0201.json +60 -0
- data/schemas/tlc/1.2/alarms/A0202.json +60 -0
- data/schemas/tlc/1.2/alarms/A0301.json +132 -0
- data/schemas/tlc/1.2/alarms/A0302.json +158 -0
- data/schemas/tlc/1.2/alarms/A0303.json +132 -0
- data/schemas/tlc/1.2/alarms/A0304.json +158 -0
- data/schemas/tlc/1.2/alarms/alarms.json +286 -0
- data/schemas/tlc/1.2/commands/M0001.json +138 -0
- data/schemas/tlc/1.2/commands/M0002.json +112 -0
- data/schemas/tlc/1.2/commands/M0003.json +112 -0
- data/schemas/tlc/1.2/commands/M0004.json +85 -0
- data/schemas/tlc/1.2/commands/M0005.json +112 -0
- data/schemas/tlc/1.2/commands/M0006.json +112 -0
- data/schemas/tlc/1.2/commands/M0007.json +85 -0
- data/schemas/tlc/1.2/commands/M0008.json +112 -0
- data/schemas/tlc/1.2/commands/M0010.json +85 -0
- data/schemas/tlc/1.2/commands/M0011.json +85 -0
- data/schemas/tlc/1.2/commands/M0012.json +79 -0
- data/schemas/tlc/1.2/commands/M0013.json +79 -0
- data/schemas/tlc/1.2/commands/M0014.json +106 -0
- data/schemas/tlc/1.2/commands/M0015.json +112 -0
- data/schemas/tlc/1.2/commands/M0016.json +79 -0
- data/schemas/tlc/1.2/commands/M0017.json +79 -0
- data/schemas/tlc/1.2/commands/M0018.json +112 -0
- data/schemas/tlc/1.2/commands/M0019.json +139 -0
- data/schemas/tlc/1.2/commands/M0020.json +139 -0
- data/schemas/tlc/1.2/commands/M0021.json +79 -0
- data/schemas/tlc/1.2/commands/M0022.json +355 -0
- data/schemas/tlc/1.2/commands/M0023.json +85 -0
- data/schemas/tlc/1.2/commands/M0103.json +103 -0
- data/schemas/tlc/1.2/commands/M0104.json +220 -0
- data/schemas/tlc/1.2/commands/command_requests.json +7 -0
- data/schemas/tlc/1.2/commands/command_responses.json +7 -0
- data/schemas/tlc/1.2/commands/commands.json +398 -0
- data/schemas/tlc/1.2/rsmp.json +73 -0
- data/schemas/tlc/1.2/statuses/S0001.json +137 -0
- data/schemas/tlc/1.2/statuses/S0002.json +55 -0
- data/schemas/tlc/1.2/statuses/S0003.json +55 -0
- data/schemas/tlc/1.2/statuses/S0004.json +55 -0
- data/schemas/tlc/1.2/statuses/S0005.json +112 -0
- data/schemas/tlc/1.2/statuses/S0006.json +88 -0
- data/schemas/tlc/1.2/statuses/S0007.json +116 -0
- data/schemas/tlc/1.2/statuses/S0008.json +116 -0
- data/schemas/tlc/1.2/statuses/S0009.json +116 -0
- data/schemas/tlc/1.2/statuses/S0010.json +116 -0
- data/schemas/tlc/1.2/statuses/S0011.json +116 -0
- data/schemas/tlc/1.2/statuses/S0012.json +116 -0
- data/schemas/tlc/1.2/statuses/S0013.json +88 -0
- data/schemas/tlc/1.2/statuses/S0014.json +90 -0
- data/schemas/tlc/1.2/statuses/S0015.json +90 -0
- data/schemas/tlc/1.2/statuses/S0016.json +61 -0
- data/schemas/tlc/1.2/statuses/S0017.json +61 -0
- data/schemas/tlc/1.2/statuses/S0018.json +61 -0
- data/schemas/tlc/1.2/statuses/S0019.json +61 -0
- data/schemas/tlc/1.2/statuses/S0020.json +88 -0
- data/schemas/tlc/1.2/statuses/S0021.json +56 -0
- data/schemas/tlc/1.2/statuses/S0022.json +55 -0
- data/schemas/tlc/1.2/statuses/S0023.json +56 -0
- data/schemas/tlc/1.2/statuses/S0024.json +56 -0
- data/schemas/tlc/1.2/statuses/S0025.json +250 -0
- data/schemas/tlc/1.2/statuses/S0026.json +55 -0
- data/schemas/tlc/1.2/statuses/S0027.json +55 -0
- data/schemas/tlc/1.2/statuses/S0028.json +55 -0
- data/schemas/tlc/1.2/statuses/S0029.json +55 -0
- data/schemas/tlc/1.2/statuses/S0030.json +55 -0
- data/schemas/tlc/1.2/statuses/S0031.json +55 -0
- data/schemas/tlc/1.2/statuses/S0032.json +116 -0
- data/schemas/tlc/1.2/statuses/S0033.json +114 -0
- data/schemas/tlc/1.2/statuses/S0034.json +61 -0
- data/schemas/tlc/1.2/statuses/S0035.json +74 -0
- data/schemas/tlc/1.2/statuses/S0091.json +65 -0
- data/schemas/tlc/1.2/statuses/S0092.json +65 -0
- data/schemas/tlc/1.2/statuses/S0095.json +55 -0
- data/schemas/tlc/1.2/statuses/S0096.json +196 -0
- data/schemas/tlc/1.2/statuses/S0097.json +82 -0
- data/schemas/tlc/1.2/statuses/S0098.json +103 -0
- data/schemas/tlc/1.2/statuses/S0201.json +88 -0
- data/schemas/tlc/1.2/statuses/S0202.json +88 -0
- data/schemas/tlc/1.2/statuses/S0203.json +88 -0
- data/schemas/tlc/1.2/statuses/S0204.json +304 -0
- data/schemas/tlc/1.2/statuses/S0205.json +88 -0
- data/schemas/tlc/1.2/statuses/S0206.json +88 -0
- data/schemas/tlc/1.2/statuses/S0207.json +88 -0
- data/schemas/tlc/1.2/statuses/S0208.json +304 -0
- data/schemas/tlc/1.2/statuses/statuses.json +786 -0
- data/schemas/tlc/1.2/sxl.yaml +2082 -0
- metadata +113 -27
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c72738e0163582165219b6739632af5b7352bc2e850d40d436c775bee9251ccb
|
4
|
+
data.tar.gz: 0f39e6046772ff3d3c455ae26741411e80a75e7d43eca97a590084241e48faac
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 107f7a7078abe046f782dd6bb15db8cbdefe14e3b6d377b6ea50db6e67118438a8813b5bf0c374f27f4b580f23e5a70677a3f30e76c3962895da6a1d7630c1bc
|
7
|
+
data.tar.gz: ee079987f915f6f1f2f649d03ab23695f67d271349284653a8e734f33e2f30684a4acdcd2e1f1f9118ff888601f7f2927d5d22301c42fe2dc45d0b401f536744
|
data/.tool-versions
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
ruby 3.2.2
|
data/Gemfile.lock
CHANGED
@@ -1,55 +1,49 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rsmp_schema (0.
|
5
|
-
json_schemer (~>
|
6
|
-
thor (~> 1.
|
4
|
+
rsmp_schema (0.5.1)
|
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.
|
49
|
+
2.4.22
|
data/lib/rsmp_schema/schema.rb
CHANGED
@@ -30,9 +30,12 @@ module RSMP::Schema
|
|
30
30
|
@@schemas[type] = {}
|
31
31
|
Dir.glob("#{type_path}/*").select {|f| File.directory? f}.each do |schema_path|
|
32
32
|
version = File.basename(schema_path)
|
33
|
-
|
34
|
-
|
35
|
-
|
33
|
+
file_path = File.join(schema_path,'rsmp.json')
|
34
|
+
if File.exist? file_path
|
35
|
+
@@schemas[type][version] = JSONSchemer.schema(
|
36
|
+
Pathname.new(File.join(schema_path,'rsmp.json'))
|
37
|
+
)
|
38
|
+
end
|
36
39
|
end
|
37
40
|
end
|
38
41
|
|
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
|
@@ -17,7 +17,7 @@
|
|
17
17
|
"additionalProperties" : false,
|
18
18
|
"properties": {
|
19
19
|
"sCI" : { "$ref": "../3.1.2/definitions.json#/status_code" },
|
20
|
-
"n" : { "description" : "
|
20
|
+
"n" : { "description" : "Unique reference of the value", "type" : "string" },
|
21
21
|
"q" : { "description" : "Quality", "type" : "string" },
|
22
22
|
"s" : { "description" : "Value" }
|
23
23
|
}
|
@@ -0,0 +1,39 @@
|
|
1
|
+
{
|
2
|
+
"$schema" : "http://json-schema.org/draft-07/schema#",
|
3
|
+
"name" : "core",
|
4
|
+
"description" : "Core",
|
5
|
+
"version" : "3.2.1",
|
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
|
+
}
|
@@ -0,0 +1,59 @@
|
|
1
|
+
{
|
2
|
+
"description" : "Communication error.\nUsed for communication errors with the central system. Includes NTP connection loss if the TLC is configured to use NTP.\nIs a \"minor fault\" defined according to 3.11 in EN12675.",
|
3
|
+
"allOf" : [
|
4
|
+
{
|
5
|
+
"properties" : {
|
6
|
+
"n" : {
|
7
|
+
"enum" : [
|
8
|
+
"protocol"
|
9
|
+
]
|
10
|
+
}
|
11
|
+
}
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"if" : {
|
15
|
+
"required" : [
|
16
|
+
"q"
|
17
|
+
],
|
18
|
+
"properties" : {
|
19
|
+
"q" : {
|
20
|
+
"const" : "undefined"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"then" : {
|
25
|
+
"s" : {
|
26
|
+
"type" : "null"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"else" : {
|
30
|
+
"allOf" : [
|
31
|
+
{
|
32
|
+
"if" : {
|
33
|
+
"required" : [
|
34
|
+
"n"
|
35
|
+
],
|
36
|
+
"properties" : {
|
37
|
+
"n" : {
|
38
|
+
"const" : "protocol"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"then" : {
|
43
|
+
"properties" : {
|
44
|
+
"v" : {
|
45
|
+
"description" : "Type of communication error, e.g. NTP or RSMP",
|
46
|
+
"type" : "string",
|
47
|
+
"enum" : [
|
48
|
+
"ntp",
|
49
|
+
"rsmp"
|
50
|
+
]
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
]
|
56
|
+
}
|
57
|
+
}
|
58
|
+
]
|
59
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
{
|
2
|
+
"description" : "Dead lock error.\nUsed for dead lock errors.\nFor instance; a signal group has requested green but is unable to switch due to a conflicting signal group for an extended period of time. At some point the request times out and the controller goes failure mode. The cause for this error is due to configuration errors or external sources.\nIs a \"major fault\" defined according to 3.8 in EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675.",
|
3
|
+
"allOf" : [
|
4
|
+
{
|
5
|
+
"properties" : {
|
6
|
+
"n" : {
|
7
|
+
"enum" : [
|
8
|
+
"timeplan"
|
9
|
+
]
|
10
|
+
}
|
11
|
+
}
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"if" : {
|
15
|
+
"required" : [
|
16
|
+
"q"
|
17
|
+
],
|
18
|
+
"properties" : {
|
19
|
+
"q" : {
|
20
|
+
"const" : "undefined"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"then" : {
|
25
|
+
"s" : {
|
26
|
+
"type" : "null"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"else" : {
|
30
|
+
"allOf" : [
|
31
|
+
{
|
32
|
+
"if" : {
|
33
|
+
"required" : [
|
34
|
+
"n"
|
35
|
+
],
|
36
|
+
"properties" : {
|
37
|
+
"n" : {
|
38
|
+
"const" : "timeplan"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"then" : {
|
43
|
+
"properties" : {
|
44
|
+
"v" : {
|
45
|
+
"allOf" : [
|
46
|
+
{
|
47
|
+
"description" : "Current time plan"
|
48
|
+
},
|
49
|
+
{
|
50
|
+
"$ref" : "../../../core/3.1.2/definitions.json#/integer"
|
51
|
+
}
|
52
|
+
]
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
]
|
58
|
+
}
|
59
|
+
}
|
60
|
+
]
|
61
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
{
|
2
|
+
"description" : "Serious lamp error.\nUsed for lamp errors.\nIs a \"major fault\" defined according to 3.8 in EN12675 which causes the controller to switch to a \"failure mode\" according to 3.6 in EN12675.",
|
3
|
+
"allOf" : [
|
4
|
+
{
|
5
|
+
"properties" : {
|
6
|
+
"n" : {
|
7
|
+
"enum" : [
|
8
|
+
"color"
|
9
|
+
]
|
10
|
+
}
|
11
|
+
}
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"if" : {
|
15
|
+
"required" : [
|
16
|
+
"q"
|
17
|
+
],
|
18
|
+
"properties" : {
|
19
|
+
"q" : {
|
20
|
+
"const" : "undefined"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"then" : {
|
25
|
+
"s" : {
|
26
|
+
"type" : "null"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"else" : {
|
30
|
+
"allOf" : [
|
31
|
+
{
|
32
|
+
"if" : {
|
33
|
+
"required" : [
|
34
|
+
"n"
|
35
|
+
],
|
36
|
+
"properties" : {
|
37
|
+
"n" : {
|
38
|
+
"const" : "color"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"then" : {
|
43
|
+
"properties" : {
|
44
|
+
"v" : {
|
45
|
+
"description" : "Color of lamp",
|
46
|
+
"type" : "string",
|
47
|
+
"enum" : [
|
48
|
+
"green",
|
49
|
+
"red",
|
50
|
+
"yellow"
|
51
|
+
]
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
]
|
57
|
+
}
|
58
|
+
}
|
59
|
+
]
|
60
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
{
|
2
|
+
"description" : "Less serious lamp error.\nUsed for lamp errors.\nIs a \"minor fault\" defined according to 3.11 in EN12675.",
|
3
|
+
"allOf" : [
|
4
|
+
{
|
5
|
+
"properties" : {
|
6
|
+
"n" : {
|
7
|
+
"enum" : [
|
8
|
+
"color"
|
9
|
+
]
|
10
|
+
}
|
11
|
+
}
|
12
|
+
},
|
13
|
+
{
|
14
|
+
"if" : {
|
15
|
+
"required" : [
|
16
|
+
"q"
|
17
|
+
],
|
18
|
+
"properties" : {
|
19
|
+
"q" : {
|
20
|
+
"const" : "undefined"
|
21
|
+
}
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"then" : {
|
25
|
+
"s" : {
|
26
|
+
"type" : "null"
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"else" : {
|
30
|
+
"allOf" : [
|
31
|
+
{
|
32
|
+
"if" : {
|
33
|
+
"required" : [
|
34
|
+
"n"
|
35
|
+
],
|
36
|
+
"properties" : {
|
37
|
+
"n" : {
|
38
|
+
"const" : "color"
|
39
|
+
}
|
40
|
+
}
|
41
|
+
},
|
42
|
+
"then" : {
|
43
|
+
"properties" : {
|
44
|
+
"v" : {
|
45
|
+
"description" : "Color of lamp",
|
46
|
+
"type" : "string",
|
47
|
+
"enum" : [
|
48
|
+
"green",
|
49
|
+
"red",
|
50
|
+
"yellow"
|
51
|
+
]
|
52
|
+
}
|
53
|
+
}
|
54
|
+
}
|
55
|
+
}
|
56
|
+
]
|
57
|
+
}
|
58
|
+
}
|
59
|
+
]
|
60
|
+
}
|