{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.8/commands/person.upsert.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": "person.upsert",
  "description": "Writes a person or an agent of the registry whole (Part XIV, 5 and 17.1.1): a new one at the end of people, at revision 0; one that is there in its place, at its revision plus one. A new person counts as revision 0; in an envelope a new one says expectedRevision null (Part XVII, 9.1). A key a sign-off names is kept as it is, and may be ended by its validUntil (Part XIV, 5.2, rule 5).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "person.upsert"
    },
    "person": {
      "$ref": "../project/person.schema.json"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The person's revision as read; a new person counts as revision 0."
    }
  },
  "required": [
    "kind",
    "person"
  ],
  "additionalProperties": false
}
