Inspection is a JSON Structure definition published by 1Factory, describing 31 properties. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.
{
"$schema": "https://json-structure.org/meta/core/v0/#",
"$id": "https://raw.githubusercontent.com/api-evangelist/1factory/refs/heads/main/json-structure/1factory-inspection-structure.json",
"name": "Inspection",
"description": "Inspection 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": "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": "datetime",
"nullable": true,
"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": "datetime",
"nullable": true,
"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"
},
"inspection_type": {
"$ref": "#/components/schemas/inspection_type"
},
"machines": {
"$ref": "#/components/schemas/machines"
},
"lot_size": {
"$ref": "#/components/schemas/lot_size"
},
"parts_passed": {
"$ref": "#/components/schemas/parts_passed"
},
"parts_failed": {
"$ref": "#/components/schemas/parts_failed"
}
}
}