feat: added upgrade schemas vor BambuMQTT v1 and v2
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/report/upgrade/get_history.schema.json",
|
||||
"title": "GetUpgradeHistoryReport",
|
||||
"allOf": [
|
||||
{ "$ref": "../../../common/envelope.schema.json" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"command": { "const": "get_history" },
|
||||
"firmware_optional": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ams": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"address": { "type": "integer" },
|
||||
"dev_model_name": { "type": "string" },
|
||||
"device_id": { "type": "string" },
|
||||
"firmware": {
|
||||
"type": ["null", "array"],
|
||||
"items": { "$ref": "../../common/firmware_details.schema.json" }
|
||||
},
|
||||
"firmware_current": {
|
||||
"type": ["null", "array"],
|
||||
"items": { "$ref": "../../common/firmware_details.schema.json" }
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"firmware": {
|
||||
"type": ["null", "array"],
|
||||
"items": { "$ref": "../../common/firmware_details.schema.json" }
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["firmware_optional"]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user