{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.8/slabHosts/edges.schema.json",
  "$comment": "OpenEik 0.7: folded by tools/fold-schemas-0.7.mjs from the proposal slabHosts, which 0.7 makes a rule (open questions, 164). Written by hand, not generated.",
  "title": "A slab's or a roof's edge details",
  "description": "The edge details on a slab's or a roof's edges (Part II, 6.1.2, rule 5): each names an edge of its outline by its id, an edge detail type, and the span of the edge it takes, in mm from the edge's start in the element's plane, the whole edge where from and to are left out.",
  "type": "array",
  "items": {
    "type": "object",
    "properties": {
      "edge": {
        "type": "object",
        "description": "The edge of the element's outline the detail stands on, by its id: its edgeIds, or <id>:edge:<n> (Part I, 6.6).",
        "properties": {
          "edgeId": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "edgeId"
        ],
        "x-eik-closed": true
      },
      "typeId": {
        "type": "string",
        "minLength": 1,
        "x-eik-ref": "type",
        "description": "The edge detail: a component type with an edgeDetail (Part II, 5), its section drawn across the element at the edge, a down from its top face and b in from the edge, negative past it."
      },
      "from": {
        "type": "number",
        "minimum": 0,
        "description": "Where on the edge it starts, in mm from the edge's start, measured in the element's plane; 0 where it is left out."
      },
      "to": {
        "type": "number",
        "exclusiveMinimum": 0,
        "description": "Where on the edge it ends, in mm from the edge's start, measured in the element's plane; the edge's end where it is left out."
      },
      "why": {
        "type": "string",
        "minLength": 1,
        "maxLength": 300
      }
    },
    "required": [
      "edge",
      "typeId"
    ],
    "x-eik-closed": true
  },
  "maxItems": 64
}
