{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/commands/split.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": "split",
  "description": "Splits a straight wall or beam at distance along it from its start, leaving gap between the parts (Part V, 2.3.1, rule 8): the element keeps the first part, the second is new under newId, and what it hosts goes with the part it stands on. Run as updates and a create.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "split"
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The element's revision as read."
    },
    "distance": {
      "type": "number",
      "exclusiveMinimum": 0,
      "description": "Where, mm along the element from its start."
    },
    "gap": {
      "type": "number",
      "minimum": 0,
      "description": "The gap between the two parts, mm, centred on distance; 0 where it is left out."
    },
    "newId": {
      "type": "string",
      "minLength": 1,
      "description": "The second part's id, new."
    }
  },
  "required": [
    "kind",
    "id",
    "expectedRevision",
    "distance",
    "newId"
  ],
  "additionalProperties": false
}
