{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://physicaleurope.com/api/part-spec.schema.json",
  "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"
  ]
}
