{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/elements/water.schema.json",
  "$comment": "OpenEik 0.6: folded by tools/fold-schemas-0.6.mjs from the proposal siteWater, which 0.6 makes a rule (open questions, 159). Written by hand, not generated.",
  "title": "water element",
  "description": "An element record of category \"water\" (Part II, 6.3.4: a pond, a pool, a lake or a basin. Its outline is its profile, a closed contour in plan of three points or more, as a pad's is; its water payload gives its surface, the water level in mm above its level's elevation plus its offset, and optionally its bottom, which digs the ground under it, its batter, the slope of its banks, horizontal per vertical, and whether it is emptied in use. Its folder is site.",
  "allOf": [
    {
      "$ref": "element.schema.json"
    },
    {
      "properties": {
        "category": {
          "const": "water"
        },
        "bars": false,
        "base": false,
        "bottomPlate": false,
        "cable": false,
        "connection": false,
        "edgeAttachments": false,
        "edges": false,
        "electrical": false,
        "end": false,
        "endRise": false,
        "framingCorners": false,
        "framingJoints": false,
        "framingOffset": false,
        "framingStart": false,
        "framingStuds": false,
        "framingTees": false,
        "framingTop": false,
        "generic": false,
        "grading": false,
        "joins": false,
        "joints": false,
        "mep": false,
        "panels": false,
        "propertyLine": false,
        "provision": false,
        "railing": false,
        "roll": false,
        "roof": false,
        "room": false,
        "roomBounding": false,
        "sheet": false,
        "stair": false,
        "taper": false,
        "terminal": false,
        "terrain": false,
        "top": false,
        "turn": false,
        "wallOutline": false,
        "profile": {
          "type": "array",
          "minItems": 3,
          "maxItems": 500
        },
        "water": {
          "type": "object",
          "properties": {
            "surface": {
              "type": "number",
              "description": "The water level, mm above the element's level's elevation plus its offset."
            },
            "bottom": {
              "type": "number",
              "description": "The bottom's height, mm above the element's level's elevation plus its offset, under the surface; without it nothing is dug."
            },
            "batter": {
              "type": "number",
              "exclusiveMinimum": 0,
              "maximum": 100,
              "description": "The banks' slope, horizontal per vertical: 1:batter; without it they are vertical."
            },
            "empties": {
              "type": "boolean",
              "description": "True where the water is emptied in use, a pool drained for its upkeep, so that its empty state is one of its persistent states; false, as where it is absent, where it is held at its surface (Part XIX, 6.2, rule 4)."
            }
          },
          "required": [
            "surface"
          ],
          "x-eik-closed": true
        }
      },
      "required": [
        "water",
        "profile"
      ]
    }
  ]
}
