blob: d37531a2af3f9667eefe343051b161935cd774ba [file] [log] [blame]
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$defs": {
"GPIOLeakDetector": {
"description": "Configuration for GPIO based Leak Detector.",
"type": "object",
"properties": {
"Name": {
"description": "The name of the leak detector.",
"type": "string"
},
"Type": {
"description": "The type of configuration object",
"type": "string"
},
"SubType": {
"description": "The type of leak detector.",
"enum": ["LeakSensingCable", "Unknown"]
},
"PinName": {
"description": "The GPIO pin name for the leak detector.",
"type": "string"
},
"Polarity": {
"description": "The GPIO polarity depicting its active status.",
"enum": ["ActiveLow", "ActiveHigh"]
},
"Level": {
"description": "The severity level of the leak detector.",
"enum": ["Critical", "Warning"]
}
},
"required": [
"Name",
"Type",
"SubType",
"PinName",
"Polarity",
"Level"
]
}
}
}