{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/pieces/edge-parts.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal pieces, which 0.5 makes a rule (open questions, 124). Written by hand, not generated.",
  "title": "A section of insulation parts",
  "description": "A slab edge type's section as an outline of insulation parts (Part XX, 2.3): the height it hangs from, and its parts, each a polygon in the section's plane, x across the edge into the host from the edge's line and z up, its top at z = 0. The concrete cast in it is derived (rule 5).",
  "type": "object",
  "properties": {
    "anchor": {
      "type": "string",
      "enum": [
        "slabTop",
        "structureBottom"
      ],
      "description": "The height its section's z = 0 hangs from (Part IV, 4.6, rule 4)."
    },
    "parts": {
      "type": "array",
      "minItems": 1,
      "maxItems": 20,
      "items": {
        "type": "object",
        "properties": {
          "role": {
            "type": "string",
            "enum": [
              "leaf",
              "foot",
              "leg",
              "board",
              "face",
              "other"
            ]
          },
          "material": {
            "type": "string",
            "minLength": 1,
            "maxLength": 60
          },
          "points": {
            "type": "array",
            "minItems": 3,
            "maxItems": 64,
            "items": {
              "type": "array",
              "minItems": 2,
              "maxItems": 2,
              "items": {
                "type": "number",
                "minimum": -10000,
                "maximum": 10000
              }
            }
          },
          "materialId": {
            "$ref": "../materialId/material-id.schema.json"
          }
        },
        "required": [
          "role",
          "points"
        ],
        "x-eik-closed": true,
        "anyOf": [
          {
            "required": [
              "material"
            ]
          },
          {
            "required": [
              "materialId"
            ]
          }
        ]
      }
    }
  },
  "required": [
    "anchor",
    "parts"
  ],
  "x-eik-closed": true
}
