{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/commands/column.attach.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": "column.attach",
  "description": "Attaches a column's base to a face of a foundation or a slab (Part V, 2.3.1, rule 13; Part IV, 5.2): its base becomes {attach: {hostId, face, offset}}, offset where it is not 0. Run as an update.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "column.attach"
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The element's revision as read."
    },
    "hostId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element",
      "description": "The foundation or slab."
    },
    "expectedHostRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The host's revision as read."
    },
    "face": {
      "type": "string",
      "enum": [
        "top",
        "underside"
      ],
      "description": "top where it is left out."
    },
    "offset": {
      "type": "number",
      "minimum": -10000,
      "maximum": 10000,
      "description": "From the face, mm, below it where negative; 0 where it is left out."
    }
  },
  "required": [
    "kind",
    "id",
    "expectedRevision",
    "hostId",
    "expectedHostRevision"
  ],
  "additionalProperties": false
}
