Raw schema
{
"type": "object",
"properties": {
"bends": {
"items": {
"additionalProperties": false,
"description": "A straight fold across the whole part, on the line through start_in\nand end_in ([x, y] in the item's frame; any two points on the line).\nangle_deg is how far it folds: 90 is a square bend. direction is up (a\nmountain fold seen from above) or down (a valley fold); it does not\nchange the price.",
"properties": {
"angle_deg": {
"default": 90,
"exclusiveMinimum": 0,
"maximum": 180,
"type": "number"
},
"direction": {
"default": "up",
"enum": [
"up",
"down"
],
"type": "string"
},
"end_in": {
"maxItems": 2,
"minItems": 2,
"prefixItems": [
{
"maximum": 120,
"minimum": 0,
"type": "number"
},
{
"maximum": 120,
"minimum": 0,
"type": "number"
}
],
"type": "array"
},
"start_in": {
"maxItems": 2,
"minItems": 2,
"prefixItems": [
{
"maximum": 120,
"minimum": 0,
"type": "number"
},
{
"maximum": 120,
"minimum": 0,
"type": "number"
}
],
"type": "array"
}
},
"required": [
"start_in",
"end_in"
],
"type": "object"
},
"maxItems": 10,
"type": "array"
},
"holes": {
"items": {
"oneOf": [
{
"additionalProperties": false,
"description": "One round hole diameter_in across, centred at (x_in, y_in).",
"properties": {
"diameter_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"kind": {
"const": "single",
"type": "string"
},
"x_in": {
"maximum": 120,
"minimum": 0,
"type": "number"
},
"y_in": {
"maximum": 120,
"minimum": 0,
"type": "number"
}
},
"required": [
"kind",
"x_in",
"y_in",
"diameter_in"
],
"type": "object"
},
{
"additionalProperties": false,
"description": "count round holes in a row. The first is centred at\n(start_x_in, start_y_in) and each one after it is spacing_in further\nalong angle_deg: 0 runs right, 90 runs up.",
"properties": {
"angle_deg": {
"default": 0,
"maximum": 360,
"minimum": -360,
"type": "number"
},
"count": {
"maximum": 100,
"minimum": 1,
"type": "integer"
},
"diameter_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"kind": {
"const": "linear",
"type": "string"
},
"spacing_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"start_x_in": {
"maximum": 120,
"minimum": 0,
"type": "number"
},
"start_y_in": {
"maximum": 120,
"minimum": 0,
"type": "number"
}
},
"required": [
"kind",
"start_x_in",
"start_y_in",
"count",
"spacing_in",
"diameter_in"
],
"type": "object"
},
{
"additionalProperties": false,
"description": "A grid of round holes, columns across and rows up, centred on\n(center_x_in, center_y_in). The spacings are centre to centre, and\nrotation_deg turns the whole grid about its centre, counter-clockwise.",
"properties": {
"center_x_in": {
"maximum": 120,
"minimum": 0,
"type": "number"
},
"center_y_in": {
"maximum": 120,
"minimum": 0,
"type": "number"
},
"columns": {
"maximum": 50,
"minimum": 1,
"type": "integer"
},
"diameter_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"kind": {
"const": "grid",
"type": "string"
},
"rotation_deg": {
"default": 0,
"maximum": 360,
"minimum": -360,
"type": "number"
},
"rows": {
"maximum": 50,
"minimum": 1,
"type": "integer"
},
"x_spacing_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"y_spacing_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
}
},
"required": [
"kind",
"center_x_in",
"center_y_in",
"columns",
"rows",
"x_spacing_in",
"y_spacing_in",
"diameter_in"
],
"type": "object"
},
{
"additionalProperties": false,
"description": "count round holes spaced evenly on a circle bolt_circle_diameter_in\nacross, centred on (center_x_in, center_y_in). The first hole sits at\nstart_angle_deg, counter-clockwise from +x.",
"properties": {
"bolt_circle_diameter_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"center_x_in": {
"maximum": 120,
"minimum": 0,
"type": "number"
},
"center_y_in": {
"maximum": 120,
"minimum": 0,
"type": "number"
},
"count": {
"maximum": 100,
"minimum": 2,
"type": "integer"
},
"diameter_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"kind": {
"const": "bolt_circle",
"type": "string"
},
"start_angle_deg": {
"default": 0,
"maximum": 360,
"minimum": -360,
"type": "number"
}
},
"required": [
"kind",
"center_x_in",
"center_y_in",
"count",
"bolt_circle_diameter_in",
"diameter_in"
],
"type": "object"
},
{
"additionalProperties": false,
"description": "A slot with round ends, width_in across and length_in from tip to\ntip, centred on (center_x_in, center_y_in). angle_deg turns its long\naxis counter-clockwise from +x.",
"properties": {
"angle_deg": {
"default": 0,
"maximum": 360,
"minimum": -360,
"type": "number"
},
"center_x_in": {
"maximum": 120,
"minimum": 0,
"type": "number"
},
"center_y_in": {
"maximum": 120,
"minimum": 0,
"type": "number"
},
"kind": {
"const": "slot",
"type": "string"
},
"length_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"width_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
}
},
"required": [
"kind",
"center_x_in",
"center_y_in",
"width_in",
"length_in"
],
"type": "object"
}
]
},
"maxItems": 200,
"type": "array"
},
"label": {
"anyOf": [
{
"maxLength": 60,
"type": "string"
},
{
"type": "null"
}
],
"default": null
},
"material": {
"enum": [
"mild_steel",
"stainless_304",
"stainless_316",
"aluminum_6061"
],
"type": "string"
},
"outline": {
"oneOf": [
{
"additionalProperties": false,
"description": "A rectangle width_in across and height_in up, its lower-left corner\non the origin.",
"properties": {
"height_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"kind": {
"const": "rectangle",
"type": "string"
},
"width_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
}
},
"required": [
"kind",
"width_in",
"height_in"
],
"type": "object"
},
{
"additionalProperties": false,
"description": "A round plate diameter_in across. The origin is the lower-left\ncorner of the square around it, so the centre is at\n(diameter_in / 2, diameter_in / 2).",
"properties": {
"diameter_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"kind": {
"const": "circle",
"type": "string"
}
},
"required": [
"kind",
"diameter_in"
],
"type": "object"
},
{
"additionalProperties": false,
"description": "A washer: a round plate with a round bore on the same centre. The\norigin is the lower-left corner of the square around it. The wall,\nhalf the difference of the two diameters, must be at least 1/8 in.",
"properties": {
"inner_diameter_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
},
"kind": {
"const": "ring",
"type": "string"
},
"outer_diameter_in": {
"exclusiveMinimum": 0,
"maximum": 120,
"type": "number"
}
},
"required": [
"kind",
"outer_diameter_in",
"inner_diameter_in"
],
"type": "object"
},
{
"additionalProperties": false,
"description": "A straight-sided outline: its corners in order around the part,\neither way round, each [x, y] in inches, 3 to 200 of them. The outline\ncloses itself; a last corner that repeats the first is dropped. The\ncorners set the frame, and the item's holes and bends use it too.",
"properties": {
"kind": {
"const": "polygon",
"type": "string"
},
"points_in": {
"items": {
"maxItems": 2,
"minItems": 2,
"prefixItems": [
{
"maximum": 120,
"minimum": 0,
"type": "number"
},
{
"maximum": 120,
"minimum": 0,
"type": "number"
}
],
"type": "array"
},
"maxItems": 200,
"minItems": 3,
"type": "array"
}
},
"required": [
"kind",
"points_in"
],
"type": "object"
}
]
},
"quantity": {
"default": 1,
"maximum": 999,
"minimum": 1,
"type": "integer"
},
"quantity_options": {
"items": {
"maximum": 999,
"minimum": 1,
"type": "integer"
},
"maxItems": 5,
"type": "array"
},
"thickness_in": {
"exclusiveMinimum": 0,
"maximum": 4,
"type": "number"
}
},
"required": [
"material",
"thickness_in",
"outline"
]
}