{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/commands/detail.update.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": "detail.update",
  "description": "Changes one 2D item of a view in place: each member of the patch replaces the item's, null takes one away, and the item keeps its id; the item is checked whole again (Part V, 4; Part XIV, 17.1.1). The view is at its revision plus one.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "detail.update"
    },
    "viewId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "view"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The view's revision as read."
    },
    "id": {
      "type": "string",
      "minLength": 1
    },
    "patch": {
      "type": "object",
      "description": "The members of the item to write; null takes one away. A provenance it gives replaces the item's whole."
    }
  },
  "required": [
    "kind",
    "viewId",
    "expectedRevision",
    "id",
    "patch"
  ],
  "additionalProperties": false
}
