{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/commands/sheet.upsert.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal drawingCommands, which 0.5 makes a rule (open questions, 137). Written by hand, not generated.",
  "title": "sheet.upsert",
  "description": "Writes a sheet of Part XIV, 2 whole (Part XIV, 17.1.1): a new one at the end of sheets, at the revision it gives, else 0; one that is there in its place, at its revision plus one. A new sheet counts as revision 0 (Part V, 3, rule 2); in an envelope a new one says expectedRevision null (Part XVII, 9.1). A sheet of 0.1 kept as an application record is written by no command of this part.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "sheet.upsert"
    },
    "sheet": {
      "$ref": "../drawings/sheet.schema.json"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The sheet's revision as read; a new sheet counts as revision 0."
    }
  },
  "required": [
    "kind",
    "sheet"
  ],
  "additionalProperties": false
}
