blob: a86894d98481aa86d73bb90509909926b0256ffe [file] [log] [blame]
Jagpal Singh Gill3671cd22024-11-08 00:07:41 -08001{
2 "$schema": "http://json-schema.org/draft-07/schema#",
3 "$defs": {
4 "GPIOLeakDetector": {
Alexander Hansen61bbb872025-04-16 16:28:21 +02005 "additionalProperties": false,
Jagpal Singh Gill3671cd22024-11-08 00:07:41 -08006 "description": "Configuration for GPIO based Leak Detector.",
7 "type": "object",
8 "properties": {
9 "Name": {
10 "description": "The name of the leak detector.",
11 "type": "string"
12 },
13 "Type": {
14 "description": "The type of configuration object",
Alexander Hansen61bbb872025-04-16 16:28:21 +020015 "const": "GPIOLeakDetector"
Jagpal Singh Gill3671cd22024-11-08 00:07:41 -080016 },
17 "SubType": {
18 "description": "The type of leak detector.",
19 "enum": ["LeakSensingCable", "Unknown"]
20 },
21 "PinName": {
22 "description": "The GPIO pin name for the leak detector.",
23 "type": "string"
24 },
25 "Polarity": {
26 "description": "The GPIO polarity depicting its active status.",
Alexander Hansen61bbb872025-04-16 16:28:21 +020027 "$ref": "legacy.json#/$defs/Types/Polarity"
Jagpal Singh Gill3671cd22024-11-08 00:07:41 -080028 },
29 "Level": {
30 "description": "The severity level of the leak detector.",
31 "enum": ["Critical", "Warning"]
32 }
33 },
34 "required": [
35 "Name",
36 "Type",
37 "SubType",
38 "PinName",
39 "Polarity",
40 "Level"
41 ]
42 }
43 }
44}