feat: most of the schemas done
This commit is contained in:
@@ -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/v1/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"
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user