feat: most of the schemas done
This commit is contained in:
@@ -0,0 +1,58 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/request/print/project_file.schema.json",
|
||||
"title": "PrintProjectFileRequest",
|
||||
"description": "Print project file",
|
||||
"allOf": [
|
||||
{ "$ref": "../../../common/envelope.schema.json" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"command": { "const": "project_file" },
|
||||
"param": { "type": "string" },
|
||||
"project_id": { "type": "string", "description": "\"0\" for local prints" },
|
||||
"profile_id": { "type": "string", "description": "\"0\" for local prints" },
|
||||
"task_id": { "type": "string", "description": "\"0\" for local prints" },
|
||||
"subtask_id": { "type": "string", "description": "\"0\" for local prints" },
|
||||
"subtask_name": { "type": "string", "description": "Empty string for local prints" },
|
||||
"file": { "type": "string", "description": "File name to print - may be empty string if `url` field already contains the file name" },
|
||||
"url": { "$ref": "../../../common/file_url.schema.json" },
|
||||
"md5": { "type": "string", "description": "MD5 hash of the project file. Can be empty" },
|
||||
"timelapse": { "type": "boolean" },
|
||||
"bed_type": { "$ref": "../../common/bed_type.schema.json" },
|
||||
"bed_levelling": { "type": "boolean" },
|
||||
"flow_cali": { "type": "boolean" },
|
||||
"vibration_cali": { "type": "boolean" },
|
||||
"layer_inspect": { "type": "boolean" },
|
||||
"ams_mapping": {
|
||||
"oneOf": [
|
||||
{ "$ref": "../../common/ams/ams_mapping.schema.json" },
|
||||
{ "type": "string" }
|
||||
]
|
||||
},
|
||||
"use_ams": { "type": "boolean" }
|
||||
},
|
||||
"required": ["param"],
|
||||
"anyOf": [{ "required": ["file"] }, { "required": ["url"] }]
|
||||
},
|
||||
{
|
||||
"oneOf": [
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ams_mapping": { "$ref": "../../common/ams/ams_mapping.schema.json" },
|
||||
"use_ams": true
|
||||
},
|
||||
"required": ["ams_mapping", "use_ams"]
|
||||
},
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"ams_mapping": { "type": "string", "const": "" },
|
||||
"use_ams": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user