addedInput schema / $defs
Added value: +{
+ "OrderPart": {
+ "additionalProperties": false,
+ "properties": {
+ "color": {
+ "default": "black",
+ "description": "Filament color for this part.",
+ "maxLength": 40,
+ "title": "Color",
+ "type": "string"
+ },
+ "material": {
+ "default": "pla",
+ "description": "PLA or PETG only.",
+ "maxLength": 20,
+ "title": "Material",
+ "type": "string"
+ },
+ "model_id": {
+ "default": "",
+ "description": "Reusable id from validate_stl; valid for 24 hours.",
+ "maxLength": 64,
+ "title": "Model Id",
+ "type": "string"
+ },
+ "name": {
+ "description": "Short part name, shown on the card and receipt.",
+ "maxLength": 120,
+ "minLength": 1,
+ "title": "Name",
+ "type": "string"
+ },
+ "openscad_source": {
+ "default": "",
+ "description": "OpenSCAD in millimeters; give exactly one model source.",
+ "maxLength": 50000,
+ "title": "Openscad Source",
+ "type": "string"
+ },
+ "quantity": {
+ "default": 1,
+ "description": "Copies of THIS part. Capped by how long this part takes to print, not a flat number -- checked once its geometry is known; a rejected order reports the real cap for this part's size.",
+ "maximum": 500,
+ "minimum": 1,
+ "title": "Quantity",
+ "type": "integer"
+ },
+ "stl_base64": {
+ "default": "",
+ "description": "STL in millimeters; give exactly one model source.",
+ "maxLength": 25000000,
+ "title": "Stl Base64",
+ "type": "string"
+ }
+ },
+ "required": [
+ "name"
+ ],
+ "title": "OrderPart",
+ "type": "object"
+ }
+}
addedInput schema / properties / parts
Added value: +{
+ "anyOf": [
+ {
+ "items": {
+ "$ref": "#/$defs/OrderPart"
+ },
+ "maxItems": 20,
+ "type": "array"
+ },
+ {
+ "type": "null"
+ }
+ ],
+ "default": null,
+ "description": "The WHOLE order, one entry per part. Use a model_id from earlier validation, an STL, or OpenSCAD. Each entry has its own name, material, color and quantity. Each part's quantity is capped by its own print time, not a flat count. Shipping and handling are charged once; never add independent quote totals.",
+ "title": "Parts"
+}