{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.7/taskParts/pours.schema.json",
  "$comment": "OpenEik 0.7: folded by tools/fold-schemas-0.7.mjs from the proposal taskParts, which 0.7 makes a rule (open questions, 168). Written by hand, not generated.",
  "title": "An element's pours",
  "description": "The pours of a slab, a foundation or a wall (Part II, 6.3.7, rule 1): 1 to 200 parts of the element that are cast, or built, apart, each bounded by an outline in plan. A pour is the part of the element, of every one of its layers, that lies within its outline; what lies in no pour is the element's rest (rule 4). A task of a work schedule names the pours it builds or takes away (Part XXII, 5.4.2, rule 3).",
  "type": "array",
  "minItems": 1,
  "maxItems": 200,
  "items": {
    "$ref": "#/$defs/pour"
  },
  "$defs": {
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 80,
      "pattern": "^[^/\\s:]+$",
      "description": "A pour's id, unique among its element's pours (Part II, 6.3.7, rule 2): 1 to 80 characters, with no slash, no white space and no colon."
    },
    "point": {
      "type": "array",
      "minItems": 2,
      "maxItems": 2,
      "prefixItems": [
        {
          "type": "number"
        },
        {
          "type": "number"
        }
      ],
      "description": "A point in plan, [x, y], in the model's coordinates, mm."
    },
    "pour": {
      "type": "object",
      "properties": {
        "id": {
          "$ref": "#/$defs/id"
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 200,
          "description": "A name, for people: nothing is decided by it."
        },
        "outline": {
          "type": "array",
          "minItems": 3,
          "maxItems": 1000,
          "items": {
            "$ref": "#/$defs/point"
          },
          "description": "Its outline in plan: a closed polygon of 3 to 1000 points, in the model's coordinates, mm, its first point not repeated at its end; it does not cross itself, and its area is above 0 (Part II, 6.3.7, rule 3). It may reach beyond the element: only what is within the element counts (rule 4)."
        }
      },
      "required": [
        "id",
        "outline"
      ],
      "x-eik-closed": true
    }
  }
}
