chore: schema reorganization
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/common/nozzle_diameter.schema.json",
|
||||
"title": "NozzleDiameter",
|
||||
"description": "Common schema for nozzle diameter",
|
||||
"type": "number",
|
||||
"enum": [
|
||||
0.2,
|
||||
0.4,
|
||||
0.6,
|
||||
0.8
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v1/common/nozzle_type.schema.json",
|
||||
"title": "NozzleType",
|
||||
"description": "Common schema for nozzle type. HS00 - stainless steel, HS01 - hardened steel, HS05 - tungsten carbide, HH01 - high-flow hardened steel, HH05 - high-flow tungsten carbide",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"HS00",
|
||||
"HS01",
|
||||
"HS05",
|
||||
"HH01",
|
||||
"HH05"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,26 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/report/info/_module_info.schema.json",
|
||||
"title": "ModuleInfo",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"name": { "type": "string" },
|
||||
"sw_ver": { "type": "string" },
|
||||
"hw_ver": { "type": "string" },
|
||||
"loader_ver": { "type": "string" },
|
||||
"product_name": { "type": "string" },
|
||||
"sn": { "type": "string" },
|
||||
"visible": { "type": "boolean" },
|
||||
"flag": { "type": "integer" }
|
||||
},
|
||||
"required": [
|
||||
"name",
|
||||
"sw_ver",
|
||||
"hw_ver",
|
||||
"loader_ver",
|
||||
"sn",
|
||||
"product_name",
|
||||
"visible",
|
||||
"flag"
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,19 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/report/info/get_version.schema.json",
|
||||
"title": "GetVersionReport",
|
||||
"allOf": [
|
||||
{ "$ref": "../../../common/envelope.schema.json" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"command": { "const": "get_version" },
|
||||
"module": {
|
||||
"type": "array",
|
||||
"items": { "$ref": "_module_info.schema.json" }
|
||||
}
|
||||
},
|
||||
"required": ["module"]
|
||||
}
|
||||
]
|
||||
}
|
||||
@@ -0,0 +1,14 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/request/info/get_version.schema.json",
|
||||
"title": "GetVersionRequest",
|
||||
"allOf": [
|
||||
{ "$ref": "../../../common/envelope.schema.json" },
|
||||
{
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"command": { "const": "get_version" }
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user