Files
github-actions[bot] 54e6124925 sunnypilot v2026.05.07-4485
version: sunnypilot v2026.001.000 (dev)
date: 2026-05-07T23:07:19
master commit: c28eb958740187620f2282023b8f1997cf90f583
2026-05-07 23:07:19 +00:00

24 lines
778 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://sunnypilot.com/schemas/sdui/macros.schema.json",
"title": "Settings UI macros (named rule fragments)",
"type": "object",
"additionalProperties": false,
"required": ["macros"],
"properties": {
"macros": {
"type": "object",
"description": "Named rule fragments. Each value is either a list of rules (typical) or a single rule object. Reference from items/layout via {$ref: '#/macros/<name>'}.",
"patternProperties": {
"^[A-Za-z_][A-Za-z0-9_]*$": {
"oneOf": [
{"type": "array", "items": {"$ref": "rule.schema.json"}},
{"$ref": "rule.schema.json"}
]
}
},
"additionalProperties": false
}
}
}