{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.7/commands/scopeBox.upsert.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": "scopeBox.upsert",
  "description": "Writes a scope box whole (Part V, 2.2; 2.3.1, rule 5): a new one at the end of its list at revision 0, one that is there in its place at its revision plus one. The precondition is strict (Part V, 3, rule 2): expectedRevision is given exactly when the scope box exists; in an envelope a new one says null (Part XVII, 9.1).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "scopeBox.upsert"
    },
    "scopeBox": {
      "$ref": "../project/scope-box.schema.json"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The scope box's revision as read; given exactly when it exists."
    }
  },
  "required": [
    "kind",
    "scopeBox"
  ],
  "additionalProperties": false
}
