{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.6/commands/rebar.quick.schema.json",
  "$comment": "OpenEik 0.6: folded by tools/fold-schemas-0.6.mjs from the proposal quickRebar, which 0.6 makes a rule (open questions, 149). Written by hand, not generated.",
  "title": "rebar.quick",
  "description": "Lays the bar sets a host takes by rule (Part V, 2.3.2): a slab's or a foundation's bars both ways at its underside or its top, or U-bars along its edges; a beam's or a column's cage; a wall's bars on both faces. Each set a rebar element hosted by it, its bars' centreline and mandrel given (Part II, 6.3.2), no shape code written. Run as a create of each set.",
  "type": "object",
  "properties": {
    "kind": {
      "const": "rebar.quick"
    },
    "hostId": {
      "type": "string",
      "minLength": 1,
      "x-eik-ref": "element"
    },
    "set": {
      "type": "string",
      "enum": [
        "auto",
        "slabBottom",
        "slabTop",
        "edgeU",
        "cage",
        "wall"
      ],
      "description": "auto where it is left out: slabBottom in a slab or a foundation, cage in a beam or a column, wall in a wall."
    },
    "diameter": {
      "type": "integer",
      "minimum": 5,
      "maximum": 40,
      "description": "The bars' diameter, mm, of slabBottom, slabTop, edgeU and wall: 12 both ways in a floor, 10 for U-bars and in a wall, where it is left out."
    },
    "spacing": {
      "type": "number",
      "minimum": 50,
      "maximum": 1000,
      "description": "mm between bars of a row, a cage's stirrups among them: 300 for U-bars and 200 else, where it is left out."
    },
    "cover": {
      "type": "number",
      "minimum": 10,
      "maximum": 150,
      "description": "mm from the concrete's faces to the bars' outer faces and their ends: 35 in a slab or a foundation and 30 in a beam, a column or a wall, where it is left out."
    },
    "stirrup": {
      "type": "integer",
      "minimum": 5,
      "maximum": 20,
      "description": "A cage's stirrups' diameter, mm: 8 where it is left out."
    },
    "bar": {
      "type": "integer",
      "minimum": 8,
      "maximum": 40,
      "description": "A cage's corner bars' diameter, mm: 16 where it is left out."
    },
    "leg": {
      "type": "number",
      "minimum": 100,
      "maximum": 2000,
      "description": "How far a U-bar's legs reach in from the edge's cover, mm: 500 where it is left out."
    },
    "lap": {
      "type": "number",
      "minimum": 1,
      "maximum": 5000,
      "description": "The lap of a straight bar longer than a stock bar, laid in stock lengths that overlap by it, mm; a value of the writer's design code, which the command gives. Where it is left out, such a bar is written whole, with a warning."
    },
    "stock": {
      "type": "number",
      "minimum": 1000,
      "maximum": 30000,
      "description": "A stock bar's length, mm: 12000 where it is left out."
    },
    "grade": {
      "type": "string",
      "minLength": 1,
      "x-eik-values": "national",
      "description": "The bars' grade, a national value: written into each set where it is given, and no default."
    },
    "id": {
      "type": "string",
      "minLength": 1,
      "maxLength": 120,
      "description": "The first set's id, the next ones it with -2, -3 …; <hostId>:bars where it is left out."
    },
    "expectedHostRevision": {
      "type": "integer",
      "minimum": 0,
      "description": "The host's revision as read; optional outside an envelope."
    }
  },
  "required": [
    "kind",
    "hostId"
  ],
  "additionalProperties": false
}
