{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.7/commands/align.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": "align",
  "description": "Moves an element so that a face of it lies on a parallel face of another (Part V, 2.3.1, rule 23): the faces each offers by rule from its record, the move along the reference face's normal by the distance between them. Run as move's update (rule 6).",
  "type": "object",
  "properties": {
    "kind": {
      "const": "align"
    },
    "reference": {
      "type": "object",
      "properties": {
        "elementId": {
          "type": "string",
          "minLength": 1,
          "x-eik-ref": "element"
        },
        "face": {
          "type": "string",
          "minLength": 1,
          "description": "A face the element offers (Part V, 2.3.1, rule 23): a wall's exterior, interior, centreline, start, end, bottom or top; a slab's, a foundation's or a ceiling's edge:<edge id>, top or bottom; a column's side:0 to side:3, bottom or top; a beam's left, right, start, end, bottom or top."
        }
      },
      "required": [
        "elementId",
        "face"
      ],
      "additionalProperties": false
    },
    "moving": {
      "type": "object",
      "properties": {
        "elementId": {
          "type": "string",
          "minLength": 1,
          "x-eik-ref": "element"
        },
        "face": {
          "type": "string",
          "minLength": 1,
          "description": "A face the element offers (Part V, 2.3.1, rule 23): a wall's exterior, interior, centreline, start, end, bottom or top; a slab's, a foundation's or a ceiling's edge:<edge id>, top or bottom; a column's side:0 to side:3, bottom or top; a beam's left, right, start, end, bottom or top."
        }
      },
      "required": [
        "elementId",
        "face"
      ],
      "additionalProperties": false
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The moving element's revision as read."
    },
    "expectedReferenceRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The reference element's revision as read."
    }
  },
  "required": [
    "kind",
    "reference",
    "moving",
    "expectedRevision",
    "expectedReferenceRevision"
  ],
  "additionalProperties": false
}
