{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/commands/view.update.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal domainCommands, which 0.5 makes a rule (open questions, 139). Written by hand, not generated.",
  "title": "view.update",
  "description": "Changes a view's settings by name (Part V, 2.3.1, rule 2): each member of the patch replaces the view's, null takes one away, and display merges into the view's own, a view without one starting from {style: shaded for a 3D view, else hiddenLine; shadows: true; sunPath: false}. Its id, kind and revision stay, and its 2D items change by the detail commands. Run as a view.upsert at the view's revision.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "view.update"
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "view"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The view's revision as read."
    },
    "patch": {
      "type": "object",
      "description": "The view's members to write, display's merged; null takes one away. details, id, kind and revision are refused (patch-fixed).",
      "properties": {
        "details": false,
        "id": false,
        "kind": false,
        "revision": false
      }
    }
  },
  "required": [
    "kind",
    "id",
    "expectedRevision",
    "patch"
  ],
  "additionalProperties": false
}
