rsmp_schema 0.5.2 → 0.6.0
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 -1
- data/Gemfile.lock +24 -22
- data/examples/validate.rb +1 -1
- data/lib/rsmp_schema/version.rb +1 -1
- data/rsmp_schema.gemspec +5 -5
- data/schemas/core/3.2/alarm_suspended_resumed.json +2 -2
- data/schemas/tlc/1.2/statuses/S0006.json +3 -3
- data/schemas/tlc/1.2/sxl.yaml +4 -4
- data/schemas/tlc/1.2.1/alarms/A0001.json +3 -0
- data/schemas/tlc/1.2.1/alarms/A0002.json +3 -0
- data/schemas/tlc/1.2.1/alarms/A0003.json +3 -0
- data/schemas/tlc/1.2.1/alarms/A0004.json +3 -0
- data/schemas/tlc/1.2.1/alarms/A0005.json +3 -0
- data/schemas/tlc/1.2.1/alarms/A0006.json +3 -0
- data/schemas/tlc/1.2.1/alarms/A0007.json +59 -0
- data/schemas/tlc/1.2.1/alarms/A0008.json +61 -0
- data/schemas/tlc/1.2.1/alarms/A0009.json +3 -0
- data/schemas/tlc/1.2.1/alarms/A0010.json +3 -0
- data/schemas/tlc/1.2.1/alarms/A0101.json +3 -0
- data/schemas/tlc/1.2.1/alarms/A0201.json +60 -0
- data/schemas/tlc/1.2.1/alarms/A0202.json +60 -0
- data/schemas/tlc/1.2.1/alarms/A0301.json +132 -0
- data/schemas/tlc/1.2.1/alarms/A0302.json +158 -0
- data/schemas/tlc/1.2.1/alarms/A0303.json +132 -0
- data/schemas/tlc/1.2.1/alarms/A0304.json +158 -0
- data/schemas/tlc/1.2.1/alarms/alarms.json +286 -0
- data/schemas/tlc/1.2.1/commands/M0001.json +138 -0
- data/schemas/tlc/1.2.1/commands/M0002.json +112 -0
- data/schemas/tlc/1.2.1/commands/M0003.json +112 -0
- data/schemas/tlc/1.2.1/commands/M0004.json +85 -0
- data/schemas/tlc/1.2.1/commands/M0005.json +112 -0
- data/schemas/tlc/1.2.1/commands/M0006.json +112 -0
- data/schemas/tlc/1.2.1/commands/M0007.json +85 -0
- data/schemas/tlc/1.2.1/commands/M0008.json +112 -0
- data/schemas/tlc/1.2.1/commands/M0010.json +85 -0
- data/schemas/tlc/1.2.1/commands/M0011.json +85 -0
- data/schemas/tlc/1.2.1/commands/M0012.json +79 -0
- data/schemas/tlc/1.2.1/commands/M0013.json +79 -0
- data/schemas/tlc/1.2.1/commands/M0014.json +106 -0
- data/schemas/tlc/1.2.1/commands/M0015.json +112 -0
- data/schemas/tlc/1.2.1/commands/M0016.json +79 -0
- data/schemas/tlc/1.2.1/commands/M0017.json +79 -0
- data/schemas/tlc/1.2.1/commands/M0018.json +112 -0
- data/schemas/tlc/1.2.1/commands/M0019.json +139 -0
- data/schemas/tlc/1.2.1/commands/M0020.json +139 -0
- data/schemas/tlc/1.2.1/commands/M0021.json +79 -0
- data/schemas/tlc/1.2.1/commands/M0022.json +355 -0
- data/schemas/tlc/1.2.1/commands/M0023.json +85 -0
- data/schemas/tlc/1.2.1/commands/M0103.json +103 -0
- data/schemas/tlc/1.2.1/commands/M0104.json +220 -0
- data/schemas/tlc/1.2.1/commands/command_requests.json +7 -0
- data/schemas/tlc/1.2.1/commands/command_responses.json +7 -0
- data/schemas/tlc/1.2.1/commands/commands.json +398 -0
- data/schemas/tlc/1.2.1/rsmp.json +73 -0
- data/schemas/tlc/1.2.1/statuses/S0001.json +137 -0
- data/schemas/tlc/1.2.1/statuses/S0002.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0003.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0004.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0005.json +112 -0
- data/schemas/tlc/1.2.1/statuses/S0006.json +88 -0
- data/schemas/tlc/1.2.1/statuses/S0007.json +116 -0
- data/schemas/tlc/1.2.1/statuses/S0008.json +116 -0
- data/schemas/tlc/1.2.1/statuses/S0009.json +116 -0
- data/schemas/tlc/1.2.1/statuses/S0010.json +116 -0
- data/schemas/tlc/1.2.1/statuses/S0011.json +116 -0
- data/schemas/tlc/1.2.1/statuses/S0012.json +116 -0
- data/schemas/tlc/1.2.1/statuses/S0013.json +88 -0
- data/schemas/tlc/1.2.1/statuses/S0014.json +90 -0
- data/schemas/tlc/1.2.1/statuses/S0015.json +90 -0
- data/schemas/tlc/1.2.1/statuses/S0016.json +61 -0
- data/schemas/tlc/1.2.1/statuses/S0017.json +61 -0
- data/schemas/tlc/1.2.1/statuses/S0018.json +61 -0
- data/schemas/tlc/1.2.1/statuses/S0019.json +61 -0
- data/schemas/tlc/1.2.1/statuses/S0020.json +88 -0
- data/schemas/tlc/1.2.1/statuses/S0021.json +56 -0
- data/schemas/tlc/1.2.1/statuses/S0022.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0023.json +56 -0
- data/schemas/tlc/1.2.1/statuses/S0024.json +56 -0
- data/schemas/tlc/1.2.1/statuses/S0025.json +250 -0
- data/schemas/tlc/1.2.1/statuses/S0026.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0027.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0028.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0029.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0030.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0031.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0032.json +116 -0
- data/schemas/tlc/1.2.1/statuses/S0033.json +114 -0
- data/schemas/tlc/1.2.1/statuses/S0034.json +61 -0
- data/schemas/tlc/1.2.1/statuses/S0035.json +74 -0
- data/schemas/tlc/1.2.1/statuses/S0091.json +65 -0
- data/schemas/tlc/1.2.1/statuses/S0092.json +65 -0
- data/schemas/tlc/1.2.1/statuses/S0095.json +55 -0
- data/schemas/tlc/1.2.1/statuses/S0096.json +196 -0
- data/schemas/tlc/1.2.1/statuses/S0097.json +82 -0
- data/schemas/tlc/1.2.1/statuses/S0098.json +103 -0
- data/schemas/tlc/1.2.1/statuses/S0201.json +88 -0
- data/schemas/tlc/1.2.1/statuses/S0202.json +88 -0
- data/schemas/tlc/1.2.1/statuses/S0203.json +88 -0
- data/schemas/tlc/1.2.1/statuses/S0204.json +304 -0
- data/schemas/tlc/1.2.1/statuses/S0205.json +88 -0
- data/schemas/tlc/1.2.1/statuses/S0206.json +88 -0
- data/schemas/tlc/1.2.1/statuses/S0207.json +88 -0
- data/schemas/tlc/1.2.1/statuses/S0208.json +304 -0
- data/schemas/tlc/1.2.1/statuses/statuses.json +786 -0
- data/schemas/tlc/1.2.1/sxl.yaml +2109 -0
- metadata +110 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26b211065c7c90beae96f574d33dcc03a1bb55fdfe5e91b4a0a65e69cefd4a02
|
4
|
+
data.tar.gz: 64dfc50cf0e66d9ab485a091f5f03b352f82b2ee8528d1b27d3863be2954e7ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cda9a42c4cbafe91b0469428e5870ad0028c30509854d968580048a6539e92dc244a215ccb124b97d5b560d19fbaeb91d308ae29ad1370f696e43aa5757f1ccc
|
7
|
+
data.tar.gz: ae3fc23d082eae7e9136bcc40e2863c1e2df5cb85e8c7679d1ab733d4008232ecc08deb772ee991458c24cea852ee7c24793962e21d2d97cc695ed05f0faab44
|
data/.tool-versions
CHANGED
@@ -1 +1 @@
|
|
1
|
-
ruby 3.
|
1
|
+
ruby 3.3.2
|
data/Gemfile.lock
CHANGED
@@ -1,37 +1,39 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
rsmp_schema (0.
|
5
|
-
json_schemer (~> 2.
|
6
|
-
thor (~> 1.3.
|
4
|
+
rsmp_schema (0.6.0)
|
5
|
+
json_schemer (~> 2.3.0)
|
6
|
+
thor (~> 1.3.1)
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
|
11
|
+
bigdecimal (3.1.8)
|
12
|
+
diff-lcs (1.5.1)
|
12
13
|
hana (1.3.7)
|
13
|
-
json_schemer (2.
|
14
|
+
json_schemer (2.3.0)
|
15
|
+
bigdecimal
|
14
16
|
hana (~> 1.3)
|
15
17
|
regexp_parser (~> 2.0)
|
16
18
|
simpleidn (~> 0.2)
|
17
|
-
rake (13.1
|
19
|
+
rake (13.2.1)
|
18
20
|
regexp_parser (2.8.2)
|
19
|
-
rspec (3.
|
20
|
-
rspec-core (~> 3.
|
21
|
-
rspec-expectations (~> 3.
|
22
|
-
rspec-mocks (~> 3.
|
23
|
-
rspec-core (3.
|
24
|
-
rspec-support (~> 3.
|
25
|
-
rspec-expectations (3.
|
21
|
+
rspec (3.13.0)
|
22
|
+
rspec-core (~> 3.13.0)
|
23
|
+
rspec-expectations (~> 3.13.0)
|
24
|
+
rspec-mocks (~> 3.13.0)
|
25
|
+
rspec-core (3.13.0)
|
26
|
+
rspec-support (~> 3.13.0)
|
27
|
+
rspec-expectations (3.13.0)
|
26
28
|
diff-lcs (>= 1.2.0, < 2.0)
|
27
|
-
rspec-support (~> 3.
|
28
|
-
rspec-mocks (3.
|
29
|
+
rspec-support (~> 3.13.0)
|
30
|
+
rspec-mocks (3.13.1)
|
29
31
|
diff-lcs (>= 1.2.0, < 2.0)
|
30
|
-
rspec-support (~> 3.
|
31
|
-
rspec-support (3.
|
32
|
+
rspec-support (~> 3.13.0)
|
33
|
+
rspec-support (3.13.1)
|
32
34
|
simpleidn (0.2.1)
|
33
35
|
unf (~> 0.1.4)
|
34
|
-
thor (1.3.
|
36
|
+
thor (1.3.1)
|
35
37
|
unf (0.1.4)
|
36
38
|
unf_ext
|
37
39
|
unf_ext (0.0.9.1)
|
@@ -40,10 +42,10 @@ PLATFORMS
|
|
40
42
|
ruby
|
41
43
|
|
42
44
|
DEPENDENCIES
|
43
|
-
rake (~> 13.1
|
45
|
+
rake (~> 13.2.1)
|
44
46
|
rsmp_schema!
|
45
|
-
rspec (~> 3.
|
46
|
-
rspec-expectations (~> 3.
|
47
|
+
rspec (~> 3.13.0)
|
48
|
+
rspec-expectations (~> 3.13.0)
|
47
49
|
|
48
50
|
BUNDLED WITH
|
49
|
-
2.
|
51
|
+
2.5.11
|
data/examples/validate.rb
CHANGED
data/lib/rsmp_schema/version.rb
CHANGED
data/rsmp_schema.gemspec
CHANGED
@@ -30,10 +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", "~> 2.
|
34
|
-
spec.add_dependency "thor", "~> 1.3.
|
33
|
+
spec.add_dependency "json_schemer", "~> 2.3.0"
|
34
|
+
spec.add_dependency "thor", "~> 1.3.1"
|
35
35
|
|
36
|
-
spec.add_development_dependency "rake", "~> 13.1
|
37
|
-
spec.add_development_dependency "rspec", "~> 3.
|
38
|
-
spec.add_development_dependency "rspec-expectations", "~> 3.
|
36
|
+
spec.add_development_dependency "rake", "~> 13.2.1"
|
37
|
+
spec.add_development_dependency "rspec", "~> 3.13.0"
|
38
|
+
spec.add_development_dependency "rspec-expectations", "~> 3.13.0"
|
39
39
|
end
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
{
|
2
2
|
"properties" : {
|
3
3
|
"ack" : {
|
4
4
|
"description" : "Acknowledgement",
|
@@ -15,7 +15,7 @@ x{
|
|
15
15
|
"type" : "string",
|
16
16
|
"enum" : [ "Suspended", "notSuspended" ]
|
17
17
|
},
|
18
|
-
"aTs" : { "$ref": "definitions.json#/timestamp" },
|
18
|
+
"aTs" : { "$ref": "../3.1.2/definitions.json#/timestamp" },
|
19
19
|
"cat" : {
|
20
20
|
"description" : "Category",
|
21
21
|
"type" : "string",
|
@@ -1,5 +1,5 @@
|
|
1
1
|
{
|
2
|
-
"description" : "Emergency
|
2
|
+
"description" : "Emergency route.\nThe status is active during emergency prioritization.\nUsed in situations where full priority is given in the emergency vehicle program\nor for other types of priority in some cases.\n\nIf no emergency route is active, status should be set to False, and emergencystage to zero.\n\nDeprecated, use S0035 instead.",
|
3
3
|
"allOf" : [
|
4
4
|
{
|
5
5
|
"properties" : {
|
@@ -45,7 +45,7 @@
|
|
45
45
|
"s" : {
|
46
46
|
"allOf" : [
|
47
47
|
{
|
48
|
-
"description" : "False: Emergency
|
48
|
+
"description" : "False: Emergency route inactive\nTrue: Emergency route active"
|
49
49
|
},
|
50
50
|
{
|
51
51
|
"$ref" : "../../../core/3.1.2/definitions.json#/boolean"
|
@@ -71,7 +71,7 @@
|
|
71
71
|
"s" : {
|
72
72
|
"allOf" : [
|
73
73
|
{
|
74
|
-
"description" : "Number of emergency
|
74
|
+
"description" : "Number of emergency route (set to zero if no route is active)"
|
75
75
|
},
|
76
76
|
{
|
77
77
|
"$ref" : "../../../core/3.1.2/definitions.json#/integer"
|
data/schemas/tlc/1.2/sxl.yaml
CHANGED
@@ -216,7 +216,7 @@ objects:
|
|
216
216
|
description: Start up mode
|
217
217
|
S0006:
|
218
218
|
description: |-
|
219
|
-
Emergency
|
219
|
+
Emergency route.
|
220
220
|
The status is active during emergency prioritization.
|
221
221
|
Used in situations where full priority is given in the emergency vehicle program
|
222
222
|
or for other types of priority in some cases.
|
@@ -229,12 +229,12 @@ objects:
|
|
229
229
|
type: boolean
|
230
230
|
deprecated: true
|
231
231
|
description: |-
|
232
|
-
False: Emergency
|
233
|
-
True: Emergency
|
232
|
+
False: Emergency route inactive
|
233
|
+
True: Emergency route active
|
234
234
|
emergencystage:
|
235
235
|
type: integer
|
236
236
|
deprecated: true
|
237
|
-
description: Number of emergency
|
237
|
+
description: Number of emergency route (set to zero if no route is active)
|
238
238
|
min: 0
|
239
239
|
max: 255
|
240
240
|
S0007:
|
@@ -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
|
+
}
|
@@ -0,0 +1,132 @@
|
|
1
|
+
{
|
2
|
+
"description" : "Detector error (hardware).\nIs a \"minor fault\" defined according to 3.11 in EN12675.",
|
3
|
+
"allOf" : [
|
4
|
+
{
|
5
|
+
"properties" : {
|
6
|
+
"n" : {
|
7
|
+
"enum" : [
|
8
|
+
"detector",
|
9
|
+
"errormode",
|
10
|
+
"manual",
|
11
|
+
"type"
|
12
|
+
]
|
13
|
+
}
|
14
|
+
}
|
15
|
+
},
|
16
|
+
{
|
17
|
+
"if" : {
|
18
|
+
"required" : [
|
19
|
+
"q"
|
20
|
+
],
|
21
|
+
"properties" : {
|
22
|
+
"q" : {
|
23
|
+
"const" : "undefined"
|
24
|
+
}
|
25
|
+
}
|
26
|
+
},
|
27
|
+
"then" : {
|
28
|
+
"s" : {
|
29
|
+
"type" : "null"
|
30
|
+
}
|
31
|
+
},
|
32
|
+
"else" : {
|
33
|
+
"allOf" : [
|
34
|
+
{
|
35
|
+
"if" : {
|
36
|
+
"required" : [
|
37
|
+
"n"
|
38
|
+
],
|
39
|
+
"properties" : {
|
40
|
+
"n" : {
|
41
|
+
"const" : "detector"
|
42
|
+
}
|
43
|
+
}
|
44
|
+
},
|
45
|
+
"then" : {
|
46
|
+
"properties" : {
|
47
|
+
"v" : {
|
48
|
+
"description" : "Designation of the detector (hardware)",
|
49
|
+
"type" : "string"
|
50
|
+
}
|
51
|
+
}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
{
|
55
|
+
"if" : {
|
56
|
+
"required" : [
|
57
|
+
"n"
|
58
|
+
],
|
59
|
+
"properties" : {
|
60
|
+
"n" : {
|
61
|
+
"const" : "type"
|
62
|
+
}
|
63
|
+
}
|
64
|
+
},
|
65
|
+
"then" : {
|
66
|
+
"properties" : {
|
67
|
+
"v" : {
|
68
|
+
"description" : "Type of detector",
|
69
|
+
"type" : "string",
|
70
|
+
"enum" : [
|
71
|
+
"input",
|
72
|
+
"loop"
|
73
|
+
]
|
74
|
+
}
|
75
|
+
}
|
76
|
+
}
|
77
|
+
},
|
78
|
+
{
|
79
|
+
"if" : {
|
80
|
+
"required" : [
|
81
|
+
"n"
|
82
|
+
],
|
83
|
+
"properties" : {
|
84
|
+
"n" : {
|
85
|
+
"const" : "errormode"
|
86
|
+
}
|
87
|
+
}
|
88
|
+
},
|
89
|
+
"then" : {
|
90
|
+
"properties" : {
|
91
|
+
"v" : {
|
92
|
+
"description" : "Detector forced on/off while detector error",
|
93
|
+
"type" : "string",
|
94
|
+
"enum" : [
|
95
|
+
"off",
|
96
|
+
"on"
|
97
|
+
]
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
},
|
102
|
+
{
|
103
|
+
"if" : {
|
104
|
+
"required" : [
|
105
|
+
"n"
|
106
|
+
],
|
107
|
+
"properties" : {
|
108
|
+
"n" : {
|
109
|
+
"const" : "manual"
|
110
|
+
}
|
111
|
+
}
|
112
|
+
},
|
113
|
+
"then" : {
|
114
|
+
"properties" : {
|
115
|
+
"v" : {
|
116
|
+
"allOf" : [
|
117
|
+
{
|
118
|
+
"description" : "Manually controlled detector logic (True/False)"
|
119
|
+
},
|
120
|
+
{
|
121
|
+
"$ref" : "../../../core/3.1.2/definitions.json#/boolean"
|
122
|
+
}
|
123
|
+
]
|
124
|
+
}
|
125
|
+
}
|
126
|
+
}
|
127
|
+
}
|
128
|
+
]
|
129
|
+
}
|
130
|
+
}
|
131
|
+
]
|
132
|
+
}
|