{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.2/commands/view.upsert.schema.json",
  "$comment": "Written by hand from Part V, 2.2 and the member names of the reference vocabulary, here in schemas/0.2/, where the schemas of 0.2 are edited (schemas/0.2/README.md). OpenEik 0.1's command schemas have none for it.",
  "title": "view.upsert",
  "description": "Writes a view whole, its detail items inline as the single-file form holds them (Part V, 2.2): a changed view keeps nothing the command does not carry, and is at its revision plus one. A new view counts as revision 0 (Part V, 3.2); expectedRevision, when given, is the view's revision as read. A member the kind does not define is refused, not dropped (Part V, 1.4).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "view.upsert"
    },
    "view": {
      "$ref": "../drawings/view.schema.json"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0
    }
  },
  "required": [
    "kind",
    "view"
  ],
  "additionalProperties": false
}
