{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.4/commands/circuit.delete.schema.json",
  "$comment": "OpenEik 0.2: folded by tools/fold-schemas.mjs from the proposal electrical, which 0.2 makes a rule (decision D5). Written by hand from the text, not generated.",
  "title": "circuit.delete",
  "description": "Removes a circuit, and lets go of its devices (Part XIII, 9): every element whose electrical.circuitId names it loses its circuitId and its from, and the modelled cables whose cable.circuitId names it are deleted. A member the kind does not define is refused, not dropped (Part V, 1.4).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "circuit.delete"
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "circuit"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The circuit's revision as read."
    }
  },
  "required": [
    "kind",
    "id"
  ],
  "additionalProperties": false
}
