feat: added upgrade schemas vor BambuMQTT v1 and v2
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/request/upgrade/start.schema.json",
|
||||
"title": "UpgradeStartRequest",
|
||||
"allOf": [
|
||||
{ "$ref": "../../../common/envelope.schema.json" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"command": { "const": "start" },
|
||||
"url": {
|
||||
"type": "string",
|
||||
"description": "URL of a signed JSON with URLs to signed binaries",
|
||||
"format": "uri",
|
||||
"pattern": "^https?://"
|
||||
},
|
||||
"module": {
|
||||
"type": "string",
|
||||
"enum": ["ota", "ams"]
|
||||
},
|
||||
"version": {
|
||||
"type": "string",
|
||||
"description": "New version number that will get downloaded",
|
||||
"pattern": "^(?:\\d{2}\\.){3}\\d{2}$"
|
||||
}
|
||||
},
|
||||
"required": ["url", "module", "version"]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user