feat: most of the schemas done
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/common/ams/ams_mapping.schema.json",
|
||||
"title": "AmsMapping",
|
||||
"description": "AMS Mapping is a God forsaken hell. And it's CRUCIAL for multi-color. LOL. The ams_mapping array uses a reverse indexing system where:\n- Array positions represent color indices in your print file (starting from 0)\n- Array values represent AMS slot numbers (0-3 for typical 4-slot AMS)\n- -1 indicates unused color slots. ALWAYS - and I say ALWAYS - pad the array so it's length is equal to the sum of all AMS trays (slots) + virtual trays (external spools), ie. a P1P with one AMS would have `ams_mapping` array of length 5 - but H2C with 2x AMS 2 Pro and 1x AMS HT would have `ams_mapping` array of length 11 (printers with two nozzles in the toolhead have two external spools)",
|
||||
"type": "array",
|
||||
"items": { "type": "integer", "minimum": -1, "minItems": 1 }
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/common/bed_type.schema.json",
|
||||
"title": "BedType",
|
||||
"description": "Common schema for bed type. TODO: Add more bed types",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"auto"
|
||||
]
|
||||
}
|
||||
@@ -10,7 +10,7 @@
|
||||
},
|
||||
"color": {
|
||||
"type": "array",
|
||||
"items": { "type": "string" }
|
||||
"items": { "$ref": "../../../common/color_hex.schema.json" }
|
||||
},
|
||||
"diameter": {
|
||||
"type": "array",
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
{
|
||||
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
||||
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/common/led_node.schema.json",
|
||||
"title": "LedNode",
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"chamber_light",
|
||||
"work_light",
|
||||
"chamber_light2"
|
||||
]
|
||||
}
|
||||
@@ -13,17 +13,12 @@
|
||||
"on",
|
||||
"off",
|
||||
"ON",
|
||||
"OFF"
|
||||
"OFF",
|
||||
"flashing",
|
||||
"FLASHING"
|
||||
]
|
||||
},
|
||||
"node": {
|
||||
"type": "string",
|
||||
"enum": [
|
||||
"chamber_light",
|
||||
"work_light",
|
||||
"chamber_light2"
|
||||
]
|
||||
}
|
||||
"node": { "$ref": "./led_node.schema.json" }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
"remain": { "type": "integer", "minimum": 0 },
|
||||
"tag_uid": { "type": "string" },
|
||||
"total_len": { "type": "integer" },
|
||||
"tray_color": { "type": "string" },
|
||||
"tray_color": { "$ref": "../../common/color_hex.schema.json" },
|
||||
"tray_diameter": { "type": "string" },
|
||||
"tray_id_name": { "type": "string" },
|
||||
"tray_info_idx": { "type": "string" },
|
||||
|
||||
Reference in New Issue
Block a user