{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.8/commands/detailFamily.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": "detailFamily.upsert",
  "description": "Writes a detail family 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 detail family exists; in an envelope a new one says null (Part XVII, 9.1).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "detailFamily.upsert"
    },
    "family": {
      "$ref": "../project/detail-family.schema.json"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The detail family's revision as read; given exactly when it exists."
    }
  },
  "required": [
    "kind",
    "family"
  ],
  "additionalProperties": false
}
