Update machine-api spec (#3253)
YOYO NEW API SPEC! Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
parent
fd1b4c3a32
commit
d3160cd85a
@ -464,6 +464,54 @@
|
|||||||
"Print": {
|
"Print": {
|
||||||
"description": "A print command.",
|
"description": "A print command.",
|
||||||
"oneOf": [
|
"oneOf": [
|
||||||
|
{
|
||||||
|
"additionalProperties": true,
|
||||||
|
"description": "Ams control.",
|
||||||
|
"properties": {
|
||||||
|
"command": {
|
||||||
|
"enum": [
|
||||||
|
"ams_control"
|
||||||
|
],
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"param": {
|
||||||
|
"description": "The param.",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Reason"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The reason for the message."
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The result of the command."
|
||||||
|
},
|
||||||
|
"sequence_id": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/SequenceId"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The sequence id."
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"required": [
|
||||||
|
"command",
|
||||||
|
"reason",
|
||||||
|
"result",
|
||||||
|
"sequence_id"
|
||||||
|
],
|
||||||
|
"type": "object"
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"additionalProperties": true,
|
"additionalProperties": true,
|
||||||
"description": "The status of the print.",
|
"description": "The status of the print.",
|
||||||
@ -842,8 +890,30 @@
|
|||||||
],
|
],
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"line": {
|
"param": {
|
||||||
"description": "The gcode line.",
|
"description": "The gcode line.",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"reason": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Reason"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The reason for the message."
|
||||||
|
},
|
||||||
|
"result": {
|
||||||
|
"allOf": [
|
||||||
|
{
|
||||||
|
"$ref": "#/components/schemas/Result"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"description": "The result of the command."
|
||||||
|
},
|
||||||
|
"return_code": {
|
||||||
|
"description": "The return code.",
|
||||||
|
"nullable": true,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"sequence_id": {
|
"sequence_id": {
|
||||||
@ -853,11 +923,18 @@
|
|||||||
}
|
}
|
||||||
],
|
],
|
||||||
"description": "The sequence id."
|
"description": "The sequence id."
|
||||||
|
},
|
||||||
|
"source": {
|
||||||
|
"description": "The source.",
|
||||||
|
"format": "int64",
|
||||||
|
"nullable": true,
|
||||||
|
"type": "integer"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"command",
|
"command",
|
||||||
"line",
|
"reason",
|
||||||
|
"result",
|
||||||
"sequence_id"
|
"sequence_id"
|
||||||
],
|
],
|
||||||
"type": "object"
|
"type": "object"
|
||||||
@ -874,6 +951,7 @@
|
|||||||
},
|
},
|
||||||
"gcode_file": {
|
"gcode_file": {
|
||||||
"description": "The gcode file.",
|
"description": "The gcode file.",
|
||||||
|
"nullable": true,
|
||||||
"type": "string"
|
"type": "string"
|
||||||
},
|
},
|
||||||
"profile_id": {
|
"profile_id": {
|
||||||
@ -907,7 +985,6 @@
|
|||||||
},
|
},
|
||||||
"required": [
|
"required": [
|
||||||
"command",
|
"command",
|
||||||
"gcode_file",
|
|
||||||
"profile_id",
|
"profile_id",
|
||||||
"project_id",
|
"project_id",
|
||||||
"sequence_id",
|
"sequence_id",
|
||||||
|
Reference in New Issue
Block a user