Jagpal Singh Gill | 3671cd2 | 2024-11-08 00:07:41 -0800 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$defs": { |
| 4 | "GPIOLeakDetector": { |
Alexander Hansen | 61bbb87 | 2025-04-16 16:28:21 +0200 | [diff] [blame] | 5 | "additionalProperties": false, |
Jagpal Singh Gill | 3671cd2 | 2024-11-08 00:07:41 -0800 | [diff] [blame] | 6 | "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 Hansen | 61bbb87 | 2025-04-16 16:28:21 +0200 | [diff] [blame] | 15 | "const": "GPIOLeakDetector" |
Jagpal Singh Gill | 3671cd2 | 2024-11-08 00:07:41 -0800 | [diff] [blame] | 16 | }, |
| 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 Hansen | 61bbb87 | 2025-04-16 16:28:21 +0200 | [diff] [blame] | 27 | "$ref": "legacy.json#/$defs/Types/Polarity" |
Jagpal Singh Gill | 3671cd2 | 2024-11-08 00:07:41 -0800 | [diff] [blame] | 28 | }, |
| 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 | } |