{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "policy-worker-result@draft", "type": "object", "properties": { "job_id": { "type": "string", "minLength": 1 }, "worker_id": { "type": "string", "minLength": 1 }, "started_at": { "type": "string", "format": "date-time" }, "completed_at": { "type": "string", "format": "date-time" }, "result_hash": { "type": "string", "minLength": 1 }, "results": { "type": "array", "items": { "type": "object", "properties": { "component_purl": { "type": "string", "minLength": 1 }, "advisory_id": { "type": "string", "minLength": 1 }, "status": { "type": "string", "minLength": 1 }, "trace_ref": { "type": "string", "minLength": 1 } }, "required": ["component_purl", "advisory_id", "status", "trace_ref"], "additionalProperties": false }, "minItems": 1 } }, "required": ["job_id", "worker_id", "started_at", "completed_at", "result_hash", "results"], "additionalProperties": false }