Alexander Hansen | c1eaad1 | 2025-05-30 18:15:59 +0200 | [diff] [blame] | 1 | { |
| 2 | "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | "$defs": { |
| 4 | "GPIODeviceDetect": { |
| 5 | "additionalProperties": false, |
| 6 | "description": "Configuration for GPIO device presence daemon", |
| 7 | "type": "object", |
| 8 | "properties": { |
| 9 | "Name": { |
| 10 | "description": "The name of the device", |
| 11 | "type": "string" |
| 12 | }, |
| 13 | "Type": { |
| 14 | "description": "The type of configuration object", |
| 15 | "const": "GPIODeviceDetect" |
| 16 | }, |
| 17 | "PresencePinNames": { |
| 18 | "description": "The names of the GPIOs used for presence detection.", |
| 19 | "type": "array", |
| 20 | "items": { |
| 21 | "type": "string" |
| 22 | } |
| 23 | }, |
| 24 | "PresencePinValues": { |
| 25 | "description": "The presence pin values for the GPIOs.", |
| 26 | "type": "array", |
| 27 | "items": { |
| 28 | "type": "number" |
| 29 | } |
| 30 | } |
| 31 | }, |
| 32 | "required": [ |
| 33 | "Name", |
| 34 | "Type", |
| 35 | "PresencePinNames", |
| 36 | "PresencePinValues" |
| 37 | ] |
| 38 | } |
| 39 | } |
| 40 | } |