{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/commands/mesh.lay.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal domainCommands, which 0.5 makes a rule (open questions, 139). Written by hand, not generated.",
  "title": "mesh.lay",
  "description": "Lays mesh over a slab or a foundation, at its bottom, its top or over its seams, or in a wall's layer, at one of its faces, at both or in its middle (Part V, 2.3.1, rule 25): a mesh element hosted by it, its sheet's designation and grade, national values (open questions, 4), as given. Run as a create.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "mesh.lay"
    },
    "hostId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "designation": {
      "type": "string",
      "minLength": 1,
      "x-eik-values": "national",
      "description": "The sheet's designation, a national value: no default."
    },
    "face": {
      "type": "string",
      "enum": [
        "bottom",
        "top",
        "seams",
        "exterior",
        "interior",
        "both",
        "middle"
      ],
      "description": "bottom over a slab or a foundation, both in a wall, where it is left out."
    },
    "layer": {
      "anyOf": [
        {
          "type": "string",
          "enum": [
            "outer",
            "inner",
            "insulation"
          ]
        },
        {
          "type": "integer",
          "minimum": 0,
          "maximum": 31
        }
      ],
      "description": "A wall's layer the mesh lies in."
    },
    "cover": {
      "type": "number",
      "minimum": 10,
      "maximum": 200,
      "description": "mm; 35 over a slab or a foundation and 25 in a wall where it is left out."
    },
    "lap": {
      "type": "number",
      "minimum": 0,
      "maximum": 2000
    },
    "grade": {
      "type": "string",
      "minLength": 1,
      "x-eik-values": "national"
    },
    "mark": {
      "type": "string",
      "minLength": 1,
      "maxLength": 12
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "The mesh element's id; <hostId>:mesh, then -2, -3 …, where it is left out."
    },
    "expectedHostRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The host's revision as read; optional outside an envelope."
    }
  },
  "required": [
    "kind",
    "hostId",
    "designation"
  ],
  "additionalProperties": false
}
