Put the vt_tray note in $comment, not in properties
The note added a moment ago sat inside `properties` as `"_comment_no_vt_tray": "..."`, which declares a property whose schema is a string - and in draft 2020-12 a subschema has to be an object or a boolean. It parses as JSON and reads fine, and a strict validator would reject the whole schema. `$comment` is the keyword for this and belongs beside `properties` rather than inside it. Swept the rest of schemas/ for the same shape while here: every other property value is a real subschema.
This commit is contained in:
@@ -7,10 +7,10 @@
|
|||||||
{ "$ref": "../../../common/envelope.schema.json" },
|
{ "$ref": "../../../common/envelope.schema.json" },
|
||||||
{
|
{
|
||||||
"type": "object",
|
"type": "object",
|
||||||
|
"$comment": "There is deliberately no vt_tray property here. A real v2 printer omits the key entirely rather than sending an empty object, confirmed live, so absence means 'not reported' and not 'no external spool' - do not add it to make this symmetrical with v1. It is why the external-spool count cannot be derived from a report: counting reported spools would give 0 on exactly the dual-nozzle H2C that has two (see common/ams/ams_mapping.schema.json).",
|
||||||
"properties": {
|
"properties": {
|
||||||
"command": { "const": "push_status" },
|
"command": { "const": "push_status" },
|
||||||
|
|
||||||
"_comment_no_vt_tray": "There is deliberately no vt_tray here. A real v2 printer omits the key entirely rather than sending an empty object, confirmed live, so absence means 'not reported' and not 'no external spool' - do not add it to make this symmetrical with v1. It is why the external-spool count cannot be derived from a report: counting reported spools would give 0 on exactly the dual-nozzle H2C that has two (see common/ams/ams_mapping.schema.json).",
|
|
||||||
|
|
||||||
"2D": { "$ref": "./_2d_report.schema.json" },
|
"2D": { "$ref": "./_2d_report.schema.json" },
|
||||||
"3D": { "$ref": "./_3d_report.schema.json" },
|
"3D": { "$ref": "./_3d_report.schema.json" },
|
||||||
|
|||||||
Reference in New Issue
Block a user