{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/commands/trim.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": "trim",
  "description": "Trims an end of a straight wall or beam to the line of another, the boundary (Part V, 2.3.1, rule 8): end 0 its start, end 1 its end. Run as updates.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "trim"
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The element's revision as read."
    },
    "boundaryId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element",
      "description": "The straight wall or beam whose line the end is trimmed to."
    },
    "expectedBoundaryRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The boundary's revision as read."
    },
    "end": {
      "enum": [
        0,
        1
      ],
      "description": "The end trimmed: 0 the start, 1 the end."
    }
  },
  "required": [
    "kind",
    "id",
    "expectedRevision",
    "boundaryId",
    "expectedBoundaryRevision",
    "end"
  ],
  "additionalProperties": false
}
