{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://physicaleurope.com/api/build-answer.schema.json",
  "title": "physicaleurope answer to a build task",
  "description": "What an assistant returns under the design guidelines, version 2.1.",
  "type": "object",
  "additionalProperties": false,
  "required": [
    "parts",
    "spec",
    "assumptions",
    "review",
    "open_cases"
  ],
  "properties": {
    "parts": {
      "type": "array",
      "minItems": 1,
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "item",
          "route",
          "offering",
          "quantity",
          "unit"
        ],
        "properties": {
          "item": {
            "type": "string"
          },
          "route": {
            "enum": [
              "make_to_drawing",
              "catalogue_part",
              "service"
            ]
          },
          "offering": {
            "enum": [
              "3d_printers",
              "3d_printing",
              "assembly",
              "door_drives",
              "batteries",
              "bearings",
              "bending",
              "bicycle_carriers",
              "cad_cam_software",
              "cnc_machine_tools",
              "cnc_machining",
              "cnc_routing",
              "cnc_turning",
              "casting_materials",
              "collaborative_robots",
              "composite_materials",
              "cable_assemblies",
              "coils_transformers",
              "custom_optics",
              "custom_packaging",
              "custom_springs",
              "drive_systems",
              "edm_machining",
              "ev_charging_equipment",
              "electronic_components",
              "embedded_prototyping_software",
              "embedded_modules",
              "engraving_signage",
              "express_transport",
              "ventilation_components",
              "fasteners",
              "fluid_handling_components",
              "forging",
              "freight_transport",
              "gnss_receivers",
              "gaskets_cut_to_size",
              "glass_cutting",
              "gratings",
              "robot_grippers",
              "hydraulic_hose_assemblies",
              "industrial_components",
              "industrial_robots",
              "injection_moulding",
              "lab_glassware",
              "laser_cutting",
              "tube_laser_cutting",
              "linear_motion",
              "machine_vision",
              "wooden_tabletops",
              "magnets",
              "metal_stock_cut_to_size",
              "microcontroller_boards",
              "instrument_parts",
              "stone_cutting",
              "pcb_assembly",
              "pcb_fabrication",
              "plc_controllers",
              "plc_programming_software",
              "parcel_delivery",
              "plastic_semi_finished",
              "plastic_sheet_cut_to_size",
              "plywood",
              "metalwork_railings",
              "robot_programming_software",
              "robot_simulation_software",
              "robot_vision_software",
              "sand_casting",
              "scissor_lift_tables",
              "sensors",
              "sheet_metal_machines",
              "single_board_computers",
              "special_machine_building",
              "stairs",
              "surface_finishing",
              "electrical_switchgear",
              "technical_ceramics",
              "technical_textiles_sewing",
              "tonewood",
              "vacuum_casting",
              "waterjet_cutting",
              "welding",
              "wheels_castors",
              "wood_cut_to_size"
            ]
          },
          "quantity": {
            "type": "number",
            "exclusiveMinimum": 0
          },
          "unit": {
            "enum": [
              "pcs",
              "set",
              "m",
              "kg",
              "job"
            ]
          },
          "material": {
            "type": "string"
          },
          "dimensions": {
            "type": "string"
          },
          "notes": {
            "type": "string"
          }
        }
      }
    },
    "spec": {
      "anyOf": [
        {
          "type": "null"
        },
        {
          "title": "physicaleurope part spec",
          "description": "Made-to-drawing parts of every family with a part type, version 2.1 of the design guidelines at https://physicaleurope.com/guidelines/. Millimetres and degrees. Distances and bend shapes are checked by cad.py.",
          "type": "object",
          "additionalProperties": false,
          "properties": {
            "ref": {
              "type": "string",
              "pattern": "^[a-z0-9][a-z0-9-]*$"
            },
            "title": {
              "type": "string"
            },
            "version": {
              "type": "string"
            },
            "date": {
              "type": "string",
              "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$"
            },
            "notes": {
              "type": "string"
            },
            "parts": {
              "type": "array",
              "minItems": 1,
              "items": {
                "anyOf": [
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "plate"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "S235JR"
                      },
                      "thickness": {
                        "enum": [
                          2,
                          3,
                          4,
                          5,
                          6,
                          8,
                          10
                        ]
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "size": {
                        "type": "array",
                        "items": {
                          "type": "number",
                          "minimum": 20,
                          "maximum": 1980
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "corner_radius": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "size"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "plate"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "S235JR"
                      },
                      "thickness": {
                        "enum": [
                          2,
                          3,
                          4,
                          5,
                          6,
                          8,
                          10
                        ]
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "diameter": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 1980
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "diameter"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "plate"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "S235JR"
                      },
                      "thickness": {
                        "enum": [
                          2,
                          3,
                          4,
                          5,
                          6,
                          8,
                          10
                        ]
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "outline": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "minItems": 3
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "outline"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "plate"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "1.4301"
                      },
                      "thickness": {
                        "enum": [
                          2,
                          3,
                          4,
                          5,
                          6,
                          8,
                          10
                        ]
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "size": {
                        "type": "array",
                        "items": {
                          "type": "number",
                          "minimum": 20,
                          "maximum": 1980
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "corner_radius": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "size"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "plate"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "1.4301"
                      },
                      "thickness": {
                        "enum": [
                          2,
                          3,
                          4,
                          5,
                          6,
                          8,
                          10
                        ]
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "diameter": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 1980
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "diameter"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "plate"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "1.4301"
                      },
                      "thickness": {
                        "enum": [
                          2,
                          3,
                          4,
                          5,
                          6,
                          8,
                          10
                        ]
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "outline": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "minItems": 3
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "outline"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "plate"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "EN AW-5754"
                      },
                      "thickness": {
                        "enum": [
                          2,
                          3,
                          4,
                          5,
                          6,
                          8,
                          10
                        ]
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "size": {
                        "type": "array",
                        "items": {
                          "type": "number",
                          "minimum": 20,
                          "maximum": 1980
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "corner_radius": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "size"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "plate"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "EN AW-5754"
                      },
                      "thickness": {
                        "enum": [
                          2,
                          3,
                          4,
                          5,
                          6,
                          8,
                          10
                        ]
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "diameter": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 1980
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "diameter"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "plate"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "EN AW-5754"
                      },
                      "thickness": {
                        "enum": [
                          2,
                          3,
                          4,
                          5,
                          6,
                          8,
                          10
                        ]
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "outline": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "minItems": 3
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "outline"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "bent"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "enum": [
                          "S235JR",
                          "1.4301",
                          "EN AW-5754"
                        ]
                      },
                      "thickness": {
                        "const": 2
                      },
                      "size": {
                        "type": "array",
                        "items": {
                          "type": "number",
                          "minimum": 20,
                          "maximum": 1980
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "inside_radius": {
                        "const": 3
                      },
                      "flanges": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "edge": {
                              "enum": [
                                "front",
                                "right",
                                "back",
                                "left"
                              ]
                            },
                            "length": {
                              "type": "number",
                              "minimum": 10
                            },
                            "angle": {
                              "const": 90
                            },
                            "direction": {
                              "enum": [
                                "up",
                                "down"
                              ]
                            }
                          },
                          "required": [
                            "edge",
                            "length",
                            "angle",
                            "direction"
                          ]
                        },
                        "minItems": 1,
                        "maxItems": 2
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "size",
                      "inside_radius",
                      "flanges"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "bent"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "enum": [
                          "S235JR",
                          "1.4301",
                          "EN AW-5754"
                        ]
                      },
                      "thickness": {
                        "const": 3
                      },
                      "size": {
                        "type": "array",
                        "items": {
                          "type": "number",
                          "minimum": 20,
                          "maximum": 1980
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "inside_radius": {
                        "const": 4
                      },
                      "flanges": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "edge": {
                              "enum": [
                                "front",
                                "right",
                                "back",
                                "left"
                              ]
                            },
                            "length": {
                              "type": "number",
                              "minimum": 16
                            },
                            "angle": {
                              "const": 90
                            },
                            "direction": {
                              "enum": [
                                "up",
                                "down"
                              ]
                            }
                          },
                          "required": [
                            "edge",
                            "length",
                            "angle",
                            "direction"
                          ]
                        },
                        "minItems": 1,
                        "maxItems": 2
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "size",
                      "inside_radius",
                      "flanges"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "bent"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "enum": [
                          "S235JR",
                          "1.4301",
                          "EN AW-5754"
                        ]
                      },
                      "thickness": {
                        "const": 4
                      },
                      "size": {
                        "type": "array",
                        "items": {
                          "type": "number",
                          "minimum": 20,
                          "maximum": 1980
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "inside_radius": {
                        "const": 5
                      },
                      "flanges": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "edge": {
                              "enum": [
                                "front",
                                "right",
                                "back",
                                "left"
                              ]
                            },
                            "length": {
                              "type": "number",
                              "minimum": 23
                            },
                            "angle": {
                              "const": 90
                            },
                            "direction": {
                              "enum": [
                                "up",
                                "down"
                              ]
                            }
                          },
                          "required": [
                            "edge",
                            "length",
                            "angle",
                            "direction"
                          ]
                        },
                        "minItems": 1,
                        "maxItems": 2
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "size",
                      "inside_radius",
                      "flanges"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "bent"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "enum": [
                          "S235JR",
                          "1.4301",
                          "EN AW-5754"
                        ]
                      },
                      "thickness": {
                        "const": 5
                      },
                      "size": {
                        "type": "array",
                        "items": {
                          "type": "number",
                          "minimum": 20,
                          "maximum": 1980
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "inside_radius": {
                        "const": 8
                      },
                      "flanges": {
                        "type": "array",
                        "items": {
                          "type": "object",
                          "additionalProperties": false,
                          "properties": {
                            "edge": {
                              "enum": [
                                "front",
                                "right",
                                "back",
                                "left"
                              ]
                            },
                            "length": {
                              "type": "number",
                              "minimum": 30
                            },
                            "angle": {
                              "const": 90
                            },
                            "direction": {
                              "enum": [
                                "up",
                                "down"
                              ]
                            }
                          },
                          "required": [
                            "edge",
                            "length",
                            "angle",
                            "direction"
                          ]
                        },
                        "minItems": 1,
                        "maxItems": 2
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 3.3
                                },
                                "thread": {
                                  "const": "M4"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 4.2
                                },
                                "thread": {
                                  "const": "M5"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 5.0
                                },
                                "thread": {
                                  "const": "M6"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 6.8
                                },
                                "thread": {
                                  "const": "M8"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "const": 8.5
                                },
                                "thread": {
                                  "const": "M10"
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "on": {
                                  "enum": [
                                    "base",
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "thread",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "thickness",
                      "size",
                      "inside_radius",
                      "flanges"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "tube"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "S235JR"
                      },
                      "profile": {
                        "enum": [
                          {
                            "size": [
                              30,
                              30
                            ],
                            "thickness": 2
                          },
                          {
                            "size": [
                              40,
                              40
                            ],
                            "thickness": 3
                          },
                          {
                            "size": [
                              50,
                              50
                            ],
                            "thickness": 3
                          },
                          {
                            "size": [
                              60,
                              60
                            ],
                            "thickness": 3
                          },
                          {
                            "size": [
                              80,
                              80
                            ],
                            "thickness": 3
                          },
                          {
                            "size": [
                              100,
                              100
                            ],
                            "thickness": 3
                          }
                        ]
                      },
                      "length": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 3000
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "face": {
                                  "enum": [
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note",
                                "face"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "face": {
                                  "enum": [
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note",
                                "face"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "profile",
                      "length"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "tube"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "EN AW-6060 T66"
                      },
                      "profile": {
                        "enum": [
                          {
                            "size": [
                              40,
                              40
                            ],
                            "thickness": 3
                          },
                          {
                            "size": [
                              50,
                              50
                            ],
                            "thickness": 3
                          }
                        ]
                      },
                      "length": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 3000
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "face": {
                                  "enum": [
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note",
                                "face"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                },
                                "face": {
                                  "enum": [
                                    "front",
                                    "right",
                                    "back",
                                    "left"
                                  ]
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note",
                                "face"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "profile",
                      "length"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "round_tube"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "S235JR"
                      },
                      "profile": {
                        "enum": [
                          {
                            "d": 42.4,
                            "thickness": 2
                          },
                          {
                            "d": 48.3,
                            "thickness": 3
                          },
                          {
                            "d": 60.3,
                            "thickness": 3
                          }
                        ]
                      },
                      "length": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 3000
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "profile",
                      "length"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "round_tube"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "finish": {
                        "enum": [
                          "Untreated",
                          "Hot-dip galvanised"
                        ]
                      },
                      "notes": {
                        "type": "string"
                      },
                      "material": {
                        "const": "1.4301"
                      },
                      "profile": {
                        "enum": [
                          {
                            "d": 42.4,
                            "thickness": 2
                          },
                          {
                            "d": 48.3,
                            "thickness": 2
                          },
                          {
                            "d": 60.3,
                            "thickness": 2
                          }
                        ]
                      },
                      "length": {
                        "type": "number",
                        "minimum": 20,
                        "maximum": 3000
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "finish",
                      "material",
                      "profile",
                      "length"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "printed"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "material": {
                        "enum": [
                          "PETG"
                        ]
                      },
                      "finish": {
                        "const": "Untreated"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 3,
                        "maximum": 240
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "minimum": 3
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "minimum": 3
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "angle",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "notes": {
                        "type": "string"
                      },
                      "size": {
                        "type": "array",
                        "items": {
                          "type": "number",
                          "minimum": 3,
                          "maximum": 240
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "corner_radius": {
                        "type": "number",
                        "exclusiveMinimum": 0
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "material",
                      "finish",
                      "thickness",
                      "size"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "printed"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "material": {
                        "enum": [
                          "PETG"
                        ]
                      },
                      "finish": {
                        "const": "Untreated"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 3,
                        "maximum": 240
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "minimum": 3
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "minimum": 3
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "angle",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "notes": {
                        "type": "string"
                      },
                      "diameter": {
                        "type": "number",
                        "minimum": 3,
                        "maximum": 240
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "material",
                      "finish",
                      "thickness",
                      "diameter"
                    ]
                  },
                  {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "id": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "name": {
                        "type": "string"
                      },
                      "type": {
                        "const": "printed"
                      },
                      "qty": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "line": {
                        "type": "integer",
                        "minimum": 1
                      },
                      "material": {
                        "enum": [
                          "PETG"
                        ]
                      },
                      "finish": {
                        "const": "Untreated"
                      },
                      "thickness": {
                        "type": "number",
                        "minimum": 3,
                        "maximum": 240
                      },
                      "features": {
                        "type": "array",
                        "items": {
                          "anyOf": [
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "hole"
                                },
                                "d": {
                                  "type": "number",
                                  "minimum": 3
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "d",
                                "at",
                                "note"
                              ]
                            },
                            {
                              "type": "object",
                              "additionalProperties": false,
                              "properties": {
                                "type": {
                                  "const": "slot"
                                },
                                "length": {
                                  "type": "number",
                                  "exclusiveMinimum": 0
                                },
                                "width": {
                                  "type": "number",
                                  "minimum": 3
                                },
                                "angle": {
                                  "enum": [
                                    0,
                                    90
                                  ]
                                },
                                "at": {
                                  "anyOf": [
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "number"
                                      },
                                      "minItems": 2,
                                      "maxItems": 2
                                    },
                                    {
                                      "type": "array",
                                      "items": {
                                        "type": "array",
                                        "items": {
                                          "type": "number"
                                        },
                                        "minItems": 2,
                                        "maxItems": 2
                                      },
                                      "minItems": 1
                                    }
                                  ]
                                },
                                "note": {
                                  "type": "string"
                                }
                              },
                              "required": [
                                "type",
                                "length",
                                "width",
                                "angle",
                                "at",
                                "note"
                              ]
                            }
                          ]
                        }
                      },
                      "notes": {
                        "type": "string"
                      },
                      "outline": {
                        "type": "array",
                        "items": {
                          "type": "array",
                          "items": {
                            "type": "number"
                          },
                          "minItems": 2,
                          "maxItems": 2
                        },
                        "minItems": 3
                      }
                    },
                    "required": [
                      "id",
                      "type",
                      "qty",
                      "line",
                      "material",
                      "finish",
                      "thickness",
                      "outline"
                    ]
                  }
                ]
              }
            },
            "assembly": {
              "type": "object",
              "additionalProperties": false,
              "properties": {
                "origin": {
                  "type": "string"
                },
                "place": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "additionalProperties": false,
                    "properties": {
                      "part": {
                        "type": "string",
                        "pattern": "^[a-z0-9][a-z0-9-]*$"
                      },
                      "at": {
                        "anyOf": [
                          {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "minItems": 3,
                            "maxItems": 3
                          },
                          {
                            "type": "array",
                            "items": {
                              "type": "array",
                              "items": {
                                "type": "number"
                              },
                              "minItems": 3,
                              "maxItems": 3
                            },
                            "minItems": 1
                          }
                        ]
                      },
                      "rotate": {
                        "type": "array",
                        "items": {
                          "type": "number"
                        },
                        "minItems": 3,
                        "maxItems": 3
                      }
                    },
                    "required": [
                      "part",
                      "at"
                    ]
                  }
                },
                "bought": {
                  "type": "array",
                  "items": {
                    "anyOf": [
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "name": {
                            "type": "string"
                          },
                          "line": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "embeds": {
                            "type": "boolean"
                          },
                          "box": {
                            "type": "array",
                            "items": {
                              "type": "number",
                              "exclusiveMinimum": 0
                            },
                            "minItems": 3,
                            "maxItems": 3
                          },
                          "at": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "minItems": 1
                              }
                            ]
                          },
                          "rotate": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "minItems": 3,
                            "maxItems": 3
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "box",
                          "at"
                        ]
                      },
                      {
                        "type": "object",
                        "additionalProperties": false,
                        "properties": {
                          "id": {
                            "type": "string",
                            "pattern": "^[a-z0-9][a-z0-9-]*$"
                          },
                          "name": {
                            "type": "string"
                          },
                          "line": {
                            "anyOf": [
                              {
                                "type": "integer",
                                "minimum": 1
                              },
                              {
                                "type": "null"
                              }
                            ]
                          },
                          "embeds": {
                            "type": "boolean"
                          },
                          "cylinder": {
                            "type": "object",
                            "additionalProperties": false,
                            "properties": {
                              "d": {
                                "type": "number",
                                "exclusiveMinimum": 0
                              },
                              "h": {
                                "type": "number",
                                "exclusiveMinimum": 0
                              }
                            },
                            "required": [
                              "d",
                              "h"
                            ]
                          },
                          "at": {
                            "anyOf": [
                              {
                                "type": "array",
                                "items": {
                                  "type": "number"
                                },
                                "minItems": 3,
                                "maxItems": 3
                              },
                              {
                                "type": "array",
                                "items": {
                                  "type": "array",
                                  "items": {
                                    "type": "number"
                                  },
                                  "minItems": 3,
                                  "maxItems": 3
                                },
                                "minItems": 1
                              }
                            ]
                          },
                          "rotate": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "minItems": 3,
                            "maxItems": 3
                          }
                        },
                        "required": [
                          "id",
                          "name",
                          "cylinder",
                          "at"
                        ]
                      }
                    ]
                  }
                }
              },
              "required": [
                "origin",
                "place"
              ]
            }
          },
          "required": [
            "ref",
            "title",
            "version",
            "date",
            "parts",
            "assembly"
          ]
        }
      ]
    },
    "assumptions": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "review": {
      "type": "array",
      "items": {
        "type": "string"
      }
    },
    "open_cases": {
      "type": "array",
      "items": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "question",
          "proposed_rule"
        ],
        "properties": {
          "question": {
            "type": "string"
          },
          "proposed_rule": {
            "type": "string"
          }
        }
      }
    }
  }
}
