Files
continuum-schemas/schemas/bambulab/v1/report.schema.json
T

68 lines
2.8 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/report.schema.json",
"title": "BambuReport",
"description": "Matches continuum-proxy's src/printer/bambu_commands::BambuReport. Note the category here is \"print\", not \"pushing\" - sending a pushall request (which does go to \"pushing\", see request.schema.json) makes the printer start/refresh the ongoing state-push stream, which itself arrives under \"print\". They're different root keys because a report category means 'what key does this arrive under', not 'what request caused it'. Each category's value is a oneOf for the same reason as request.schema.json: room for more than one shape per category without a rewrite later.",
"type": "object",
"minProperties": 1,
"maxProperties": 1,
"properties": {
"camera": {
"oneOf": [
{ "$ref": "report/camera/ipcam_record_set.schema.json" },
{ "$ref": "report/camera/ipcam_timelapse.schema.json" }
]
},
"info": {
"oneOf": [
{ "$ref": "report/info/get_version.schema.json" }
]
},
"mc_print": {
"oneOf": [
{ "$ref": "report/mc_print/push_info.schema.json" }
]
},
"print": {
"oneOf": [
{ "$ref": "report/print/ams_change_filament.schema.json" },
{ "$ref": "report/print/ams_control.schema.json" },
{ "$ref": "report/print/ams_filament_setting.schema.json" },
{ "$ref": "report/print/ams_get_rfid.schema.json" },
{ "$ref": "report/print/ams_user_setting.schema.json" },
{ "$ref": "report/print/gcode_file.schema.json" },
{ "$ref": "report/print/gcode_line.schema.json" },
{ "$ref": "report/print/pause.schema.json" },
{ "$ref": "report/print/print_option.schema.json" },
{ "$ref": "report/print/print_speed.schema.json" },
{ "$ref": "report/print/project_file.schema.json" },
{ "$ref": "report/print/push_status.schema.json" },
{ "$ref": "report/print/resume.schema.json" },
{ "$ref": "report/print/stop.schema.json" },
{ "$ref": "report/print/unload_filament.schema.json" }
]
},
"system": {
"oneOf": [
{ "$ref": "report/system/get_access_code.schema.json" },
{ "$ref": "report/system/ledctrl.schema.json" },
{ "$ref": "report/system/set_accessories.schema.json" }
]
},
"upgrade": {
"oneOf": [
{ "$ref": "report/upgrade/consistency_confirm.schema.json" },
{ "$ref": "report/upgrade/get_history.schema.json" },
{ "$ref": "report/upgrade/start.schema.json" },
{ "$ref": "report/upgrade/upgrade_confirm.schema.json" }
]
},
"xcam": {
"oneOf": [
{ "$ref": "report/xcam/xcam_control_set.json" }
]
}
},
"additionalProperties": false
}