{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.8/cutPatterns/hatch.schema.json",
  "$comment": "OpenEik 0.8: folded by tools/fold-schemas-0.8.mjs from the proposal cutPatterns, which 0.8 makes a rule (open questions, 187). Written by hand, not generated.",
  "title": "A material's or a layer's hatch",
  "description": "A pattern that a drawing draws the cut with in place of the object's pattern, its base (Part II, 4.5, rules 1 and 2): masonry, courses of units laid with their joints (rules 4 and 5), or crushed, small triangles scattered over the cut (rule 6).",
  "oneOf": [
    {
      "type": "object",
      "properties": {
        "kind": {
          "const": "masonry",
          "description": "Courses of units with their bed joints and head joints. Its base is diagonal."
        },
        "blocks": {
          "type": "object",
          "description": "The units it lays: without it, units 190 mm high with joints of 10 mm and no length, a default of the drawing.",
          "properties": {
            "height": {
              "type": "number",
              "minimum": 20,
              "maximum": 1000,
              "description": "A unit's height, mm."
            },
            "joint": {
              "type": "number",
              "minimum": 0,
              "maximum": 50,
              "description": "The thickness of its bed joints and its head joints, mm."
            },
            "length": {
              "type": "number",
              "minimum": 50,
              "maximum": 2000,
              "description": "A unit's length, mm: without it no head joint is drawn."
            },
            "bond": {
              "type": "string",
              "enum": [
                "running",
                "stack"
              ],
              "description": "running: each course's head joints half a unit along from those of the course under it, as where it is left out; stack: each over the one under it."
            }
          },
          "required": [
            "height",
            "joint"
          ],
          "x-eik-closed": true
        },
        "dense": {
          "type": "string",
          "enum": [
            "diagonal",
            "courses"
          ],
          "description": "What a drawing draws where the courses lie closer on the paper than 1 mm: diagonal, its base, as where it is left out; or courses, every n-th bed joint, n the least that sets them 1 mm apart on the paper, and no head joint."
        }
      },
      "required": [
        "kind"
      ],
      "x-eik-closed": true
    },
    {
      "type": "object",
      "properties": {
        "kind": {
          "const": "crushed",
          "description": "Small closed triangles scattered over the cut, each wholly inside it and turned every way. Its base is gravel."
        },
        "size": {
          "type": "number",
          "minimum": 5,
          "maximum": 500,
          "description": "A triangle's side in the model, mm; without it, 2 mm on the paper at any scale."
        }
      },
      "required": [
        "kind"
      ],
      "x-eik-closed": true
    }
  ]
}
