{ "$schema": "https://json-schema.org/draft/2020-12/schema", "$id": "https://raw.githubusercontent.com/api-evangelist/1factory/refs/heads/main/json-schema/1factory-fai-schema.json", "title": "Fai", "description": "Fai schema from 1Factory API", "type": "object", "properties": { "ID": { "$ref": "#/components/schemas/ID" }, "insp_ident_1": { "$ref": "#/components/schemas/insp_ident_1" }, "insp_ident_2": { "$ref": "#/components/schemas/insp_ident_2" }, "insp_ident_3": { "$ref": "#/components/schemas/insp_ident_3" }, "part_number": { "$ref": "#/components/schemas/part_number" }, "rev": { "$ref": "#/components/schemas/rev" }, "part_description": { "$ref": "#/components/schemas/part_description" }, "operation": { "$ref": "#/components/schemas/operation" }, "customer_name": { "$ref": "#/components/schemas/customer_name" }, "supplier_name": { "$ref": "#/components/schemas/supplier_name" }, "supplier_number": { "$ref": "#/components/schemas/supplier_number" }, "project_identifier": { "$ref": "#/components/schemas/project_identifier" }, "site": { "type": "string", "nullable": true, "description": "Location where inspection was performed, from your organization's Site LOV.", "example": "QC Lab" }, "created_by_name": { "$ref": "#/components/schemas/created_by_username" }, "created_on": { "$ref": "#/components/schemas/created_on" }, "in_spec_pct": { "type": "number", "format": "double", "nullable": false, "description": "Percentage of in-spec parts for this inspection.", "readOnly": false, "minimum": 0.0, "maximum": 100.0, "example": 100.0 }, "inspection_status": { "type": "string", "enum": [ "Pending", "Accepted", "Rejected" ], "description": "Current status of inspection.", "default": "Accepted" }, "inspected_by_name": { "type": "string", "nullable": true, "description": "Name of user that last set inspection status.", "example": "Will Stallard" }, "inspected_on": { "type": "string", "nullable": true, "format": "date-time", "description": "Date & time that inspection status set.", "example": "2021-07-16T17:42:31-08:00" }, "review_status": { "type": "string", "enum": [ "Pending", "Reviewed" ], "description": "Current review status of inspection.", "default": "Pending" }, "reviewed_by_name": { "type": "string", "nullable": true, "description": "Name of user that set review status.", "example": "Nipun Girotra" }, "reviewed_on": { "type": "string", "nullable": true, "format": "date-time", "description": "Date & time that review status was set.", "example": "2021-07-16T17:53:41-08:00" }, "notes": { "type": "string", "nullable": true, "maxLength": 32000, "description": "Comments on this inspection", "example": "Parts are discolored." }, "ncrs": { "type": "array", "minItems": 0, "items": { "type": "string", "nullable": false }, "description": "List of NCR #s associated with this inspection", "example": [ "NCR-123", "NCR-456" ] }, "updated_on": { "$ref": "#/components/schemas/updated_on" }, "closed_on": { "$ref": "#/components/schemas/closed_on" }, "fai_type": { "$ref": "#/components/schemas/fai_type" }, "number_of_parts": { "$ref": "#/components/schemas/number_of_parts" } } }