Files
octoturge 51dba8e896 Fix broken v2 bambulab schema refs, wire up v2 dispatchers, fix PrintJobStatus JSON mismatch
- v2/common/device/device.schema.json: stray backtick in bed $ref broke resolution
- v2/report/print/print.schema.json: ams $ref pointed at wrong path (missing ams/ subdir)
- v2/common/device/plate.schema.json: $id was copy-pasted from bed.schema.json
- Add v2/request.schema.json and v2/report.schema.json dispatchers - v2's leaf
  schemas were unreachable without them, same oneOf convention as v1
- Rewrite schemas/bambulab/README.md layout section, which still described
  v1's pre-rename paths and claimed v2 was removed
- PrintJob.status serialized as a raw i32 in Rust (prost stores proto3 enums
  as i32) while ts-types' TypeBox schema validates full enum name strings -
  add serde with= on the field so Rust JSON matches TS and protobuf's own
  canonical JSON enum mapping, plus a regression test
2026-08-31 13:50:51 +00:00

22 lines
782 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://git.octoturge.com/Continuum/continuum-schemas/raw/branch/main/schemas/bambulab/v2/common/device/plate.schema.json",
"title": "DevicePlate",
"description": "Detailed info about Plate",
"type": "object",
"properties": {
"base": {
"description": "NOTE: Just my guess, but for Textured PEI it was 6, for Engineering Plate it was 12",
"type": "integer"
},
"cali2d_id": { "type": "string" },
"cur_id": {
"description": "NOTE: Another guess - P0102 for Textured PEI, P0502 for Engineering Plate",
"type": "string"
},
"mat": { "type": "integer" },
"tar_id": { "type": "string" }
},
"required": ["base", "cali2d_id", "cur_id", "mat", "tar_id"]
}