{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://openeik.org/schemas/0.5/pieces/layout-area.schema.json",
  "$comment": "OpenEik 0.5: folded by tools/fold-schemas-0.5.mjs from the proposal pieces, which 0.5 makes a rule (open questions, 124). Written by hand, not generated.",
  "title": "A slab's piece layout",
  "description": "For each layer of its type that carries pieces, the origin of its boards' grid and an offset (Part XX, 2.4, rule 2; 5.2, rule 2).",
  "type": "array",
  "minItems": 1,
  "maxItems": 50,
  "items": {
    "type": "object",
    "properties": {
      "layer": {
        "type": "string",
        "minLength": 1,
        "maxLength": 200,
        "description": "A layer of its type, by its id."
      },
      "origin": {
        "type": "array",
        "minItems": 2,
        "maxItems": 2,
        "items": {
          "type": "number",
          "minimum": -10000000,
          "maximum": 10000000
        },
        "description": "The grid's origin, a point in plan, mm."
      },
      "offset": {
        "type": "array",
        "minItems": 2,
        "maxItems": 2,
        "items": {
          "type": "number",
          "minimum": -100000,
          "maximum": 100000
        },
        "description": "[along, across], mm, added to the origin in the grid's frame."
      }
    },
    "required": [
      "layer"
    ],
    "x-eik-closed": true
  }
}
