feat: most of the schemas done

This commit is contained in:
2026-09-02 18:05:49 +00:00
parent 0753703351
commit 6381c27c48
62 changed files with 1101 additions and 46 deletions
@@ -0,0 +1,50 @@
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/report/system/ledctrl.schema.json",
"title": "LedctrlReport",
"allOf": [
{ "$ref": "../../../common/envelope.schema.json" },
{
"type": "object",
"properties": {
"command": { "const": "ledctrl" },
"led_node": { "$ref": "../../common/led_node.schema.json" }
},
"required": ["led_node"]
},
{
"oneOf": [
{
"type": "object",
"properties": {
"led_mode": {
"type": "string",
"enum": ["on", "off", "ON", "OFF"]
}
},
"required": ["led_mode"]
},
{
"type": "object",
"properties": {
"led_mode": {
"type": "string",
"enum": ["flashing", "FLASHING"]
},
"led_on_time": { "type": "integer", "minimum": 1 },
"led_off_time": { "type": "integer", "minimum": 1 },
"loop_times": { "type": "integer", "minimum": 1 },
"interval_time": { "type": "integer", "minimum": 1 }
},
"required": [
"led_mode",
"led_on_time",
"led_off_time",
"loop_times",
"interval_time"
]
}
]
}
]
}