{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/commands/trusses.materialise.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": "trusses.materialise",
  "description": "Writes a roof's trusses out as elements of their own (Part V, 2.3.1, rule 21; Part IV, 7.4.12, rule 2): each truss its layout lays out (Part IV, 7.4.13) a beam of its family's type on its line, with its parameters, and its ridge beam and posts a beam and columns, each carrying frameHost. Refused for a roof that has trusses materialised from it already, whose layout frames a roof opening, or whose ridge beam is not level. Run as type.upserts and creates.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "trusses.materialise"
    },
    "roofId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "expectedRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The roof's revision as read."
    }
  },
  "required": [
    "kind",
    "roofId",
    "expectedRevision"
  ],
  "additionalProperties": false
}
