{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/amberai/main/json-schema/amberai-sample-rounds-list-schema.json", "title": "SampleRoundsList", "x-generated": "2026-10-05", "x-method": "derived", "x-generator": "derive-json-schema.py", "x-source": "openapi/amberai-openapi.json#/components/schemas/SampleRoundsList", "type": "object", "properties": { "items": { "type": "array", "items": { "type": "object", "properties": { "id": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, "protoId": { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, "status": { "type": "string" }, "trackingNumber": { "type": [ "string", "null" ] }, "comment": { "type": [ "string", "null" ] }, "sampleStage": { "type": [ "string", "null" ] }, "sampleMeasurements": { "anyOf": [ { "$ref": "#/$defs/__schema0" }, { "type": "null" } ] }, "annotations": { "anyOf": [ { "$ref": "#/$defs/__schema1" }, { "type": "null" } ] }, "colors": { "anyOf": [ { "$ref": "#/$defs/__schema2" }, { "type": "null" } ] }, "sizes": { "anyOf": [ { "$ref": "#/$defs/__schema3" }, { "type": "null" } ] }, "quantities": { "anyOf": [ { "$ref": "#/$defs/__schema4" }, { "type": "null" } ] }, "referenceBomId": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, { "type": "null" } ] }, "dueDate": { "type": [ "string", "null" ] }, "eta": { "type": [ "string", "null" ] }, "shipToAddress": { "type": [ "string", "null" ] }, "roundNotes": { "type": [ "string", "null" ] }, "responsibleUserId": { "anyOf": [ { "type": "string", "pattern": "^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$" }, { "type": "null" } ] }, "supplierRatings": { "anyOf": [ { "$ref": "#/$defs/__schema5" }, { "type": "null" } ] }, "supplierRatingNotes": { "type": [ "string", "null" ] }, "specChangeRequests": { "anyOf": [ { "$ref": "#/$defs/__schema6" }, { "type": "null" } ] }, "materializedSpecs": { "anyOf": [ { "$ref": "#/$defs/__schema7" }, { "type": "null" } ] }, "checklist": { "anyOf": [ { "$ref": "#/$defs/__schema8" }, { "type": "null" } ] }, "createdAt": { "type": [ "string", "null" ] }, "updatedAt": { "type": [ "string", "null" ] } }, "required": [ "id", "protoId", "status", "trackingNumber", "comment", "sampleStage", "sampleMeasurements", "annotations", "colors", "sizes", "quantities", "referenceBomId", "dueDate", "eta", "shipToAddress", "roundNotes", "responsibleUserId", "supplierRatings", "supplierRatingNotes", "specChangeRequests", "materializedSpecs", "checklist", "createdAt", "updatedAt" ], "additionalProperties": false } }, "nextCursor": { "type": [ "string", "null" ] }, "totalItems": { "type": "integer", "description": "Total number of matching records across all pages." } }, "required": [ "items", "nextCursor", "totalItems" ], "additionalProperties": false, "$defs": { "__schema0": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "array", "items": { "$ref": "#/$defs/__schema0" } }, { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "$ref": "#/$defs/__schema0" } } ] }, "__schema1": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "array", "items": { "$ref": "#/$defs/__schema1" } }, { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "$ref": "#/$defs/__schema1" } } ] }, "__schema2": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "array", "items": { "$ref": "#/$defs/__schema2" } }, { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "$ref": "#/$defs/__schema2" } } ] }, "__schema3": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "array", "items": { "$ref": "#/$defs/__schema3" } }, { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "$ref": "#/$defs/__schema3" } } ] }, "__schema4": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "array", "items": { "$ref": "#/$defs/__schema4" } }, { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "$ref": "#/$defs/__schema4" } } ] }, "__schema5": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "array", "items": { "$ref": "#/$defs/__schema5" } }, { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "$ref": "#/$defs/__schema5" } } ] }, "__schema6": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "array", "items": { "$ref": "#/$defs/__schema6" } }, { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "$ref": "#/$defs/__schema6" } } ] }, "__schema7": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "array", "items": { "$ref": "#/$defs/__schema7" } }, { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "$ref": "#/$defs/__schema7" } } ] }, "__schema8": { "anyOf": [ { "type": "string" }, { "type": "number" }, { "type": "boolean" }, { "type": "null" }, { "type": "array", "items": { "$ref": "#/$defs/__schema8" } }, { "type": "object", "propertyNames": { "type": "string" }, "additionalProperties": { "$ref": "#/$defs/__schema8" } } ] } } }