{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/commands/trusses.plan.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.plan",
  "description": "Writes a truss plan of a roof, or of every roof whose truss layout lays out (Part V, 2.3.1, rule 24): a plan on the level of the first wall or beam its trusses bear on, cut 300 mm over the highest of its roofs, its view range down to its level, cropped 1500 mm round its trusses, its architecture and systems hidden and its trusses marked. A plan of the id made before keeps the rest of what it has. Run as a view.upsert.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "trusses.plan"
    },
    "roofId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "The plan's id; truss-plan-<roofId>, or truss-plan, where it is left out."
    },
    "expectedRevision": {
      "anyOf": [
        {
          "type": "integer",
          "minimum": 0
        },
        {
          "type": "null"
        }
      ],
      "description": "The plan's revision as read, null for a plan of that id that is not there yet; optional outside an envelope."
    }
  },
  "required": [
    "kind"
  ],
  "additionalProperties": false
}
