{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.7/commands/drawingSet.upsert.schema.json",
  "$comment": "OpenEik 0.7: folded by tools/fold-schemas-0.7.mjs from the proposal drawingSets, which 0.7 makes a rule (open questions, 180). Written by hand, not generated.",
  "title": "drawingSet.upsert",
  "description": "Writes a drawing set whole (Part XIV, 2.5, rule 17): a new one at the end of drawingSets, at revision 0; one that is there in its place, at its revision plus one. A new set counts as revision 0 (Part V, 3, rule 2); in an envelope a new one says expectedRevision null (Part XVII, 9.1).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "drawingSet.upsert"
    },
    "set": {
      "$ref": "../drawings/drawing-set.schema.json"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The set's revision as read; a new set counts as revision 0."
    }
  },
  "required": [
    "kind",
    "set"
  ],
  "additionalProperties": false
}
