{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/edgeNone/edge-profile.schema.json",
  "$comment": "OpenEik 0.6: folded by tools/fold-schemas-0.6.mjs from the proposal edgeNone, which 0.6 makes a rule (open questions, 155). Written by hand, not generated.",
  "title": "A slab edge type's section",
  "description": "A slab edge type's section (Part II, 5.6): a rectangle, an L or a U by its width and depth, an L's or a U's web and flange, its anchor, and, where it has them, a facing, a beam and a chamfer; or, with the proposal edgeNone, the shape none, a section of no body, the element no more than the thickening its beam gives its host (Part II, 5.6.1, rule 1), its width, depth, web and flange 0. That a section of the shape none carries a beam and no facing (rules 2 and 3, edge-none), and no chamfer (section 5.6, rule 2, edge-chamfer), a validator checks.",
  "type": "object",
  "properties": {
    "shape": {
      "type": "string",
      "enum": [
        "rectangle",
        "L",
        "U",
        "none"
      ]
    },
    "width": {
      "type": "number",
      "minimum": 0,
      "maximum": 10000
    },
    "depth": {
      "type": "number",
      "minimum": 0,
      "maximum": 10000
    },
    "web": {
      "type": "number",
      "minimum": 0,
      "maximum": 10000
    },
    "flange": {
      "type": "number",
      "minimum": 0,
      "maximum": 10000
    },
    "anchor": {
      "type": "string",
      "enum": [
        "slabTop",
        "structureBottom"
      ]
    },
    "facing": {
      "type": "object",
      "properties": {
        "material": {
          "type": "string",
          "minLength": 1,
          "maxLength": 60
        },
        "thickness": {
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 100
        },
        "depth": {
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 10000
        },
        "materialId": {
          "$ref": "../materialId/material-id.schema.json"
        }
      },
      "required": [
        "thickness"
      ],
      "x-eik-closed": true,
      "anyOf": [
        {
          "required": [
            "material"
          ]
        },
        {
          "required": [
            "materialId"
          ]
        }
      ]
    },
    "beam": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 5000
        },
        "depth": {
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 5000
        }
      },
      "required": [
        "width",
        "depth"
      ],
      "x-eik-closed": true
    },
    "chamfer": {
      "type": "object",
      "properties": {
        "width": {
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 1000
        },
        "height": {
          "type": "number",
          "exclusiveMinimum": 0,
          "maximum": 1000
        }
      },
      "required": [
        "width",
        "height"
      ],
      "x-eik-closed": true
    }
  },
  "required": [
    "shape",
    "width",
    "depth",
    "web",
    "flange",
    "anchor"
  ],
  "x-eik-closed": true,
  "if": {
    "properties": {
      "shape": {
        "const": "none"
      }
    },
    "required": [
      "shape"
    ]
  },
  "then": {
    "properties": {
      "width": {
        "const": 0
      },
      "depth": {
        "const": 0
      },
      "web": {
        "const": 0
      },
      "flange": {
        "const": 0
      }
    }
  },
  "else": {
    "properties": {
      "width": {
        "exclusiveMinimum": 0
      },
      "depth": {
        "exclusiveMinimum": 0
      },
      "web": {
        "exclusiveMinimum": 0
      },
      "flange": {
        "exclusiveMinimum": 0
      }
    }
  }
}
