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": { |
| 5 | "description": "Configuration for GPIO based Leak Detector.", |
| 6 | "type": "object", |
| 7 | "properties": { |
| 8 | "Name": { |
| 9 | "description": "The name of the leak detector.", |
| 10 | "type": "string" |
| 11 | }, |
| 12 | "Type": { |
| 13 | "description": "The type of configuration object", |
| 14 | "type": "string" |
| 15 | }, |
| 16 | "SubType": { |
| 17 | "description": "The type of leak detector.", |
| 18 | "enum": ["LeakSensingCable", "Unknown"] |
| 19 | }, |
| 20 | "PinName": { |
| 21 | "description": "The GPIO pin name for the leak detector.", |
| 22 | "type": "string" |
| 23 | }, |
| 24 | "Polarity": { |
| 25 | "description": "The GPIO polarity depicting its active status.", |
| 26 | "enum": ["ActiveLow", "ActiveHigh"] |
| 27 | }, |
| 28 | "Level": { |
| 29 | "description": "The severity level of the leak detector.", |
| 30 | "enum": ["Critical", "Warning"] |
| 31 | } |
| 32 | }, |
| 33 | "required": [ |
| 34 | "Name", |
| 35 | "Type", |
| 36 | "SubType", |
| 37 | "PinName", |
| 38 | "Polarity", |
| 39 | "Level" |
| 40 | ] |
| 41 | } |
| 42 | } |
| 43 | } |