{ "$schema": "http://json-schema.org/draft-07/schema#", "title": "orchestrator-job@draft", "type": "object", "properties": { "job_id": { "type": "string", "minLength": 1 }, "tenant_id": { "type": "string", "minLength": 1 }, "context_id": { "type": "string", "minLength": 1 }, "policy_profile_hash": { "type": "string", "minLength": 1 }, "priority": { "type": "string", "enum": ["normal", "high", "emergency", "preview"] }, "requested_at": { "type": "string", "format": "date-time" }, "status": { "type": "string", "minLength": 1 }, "trace_ref": { "type": "string", "minLength": 1 }, "determinism_hash": { "type": "string", "minLength": 1 }, "completed_at": { "type": ["string", "null"], "format": "date-time" }, "result_hash": { "type": ["string", "null"] }, "batch_items": { "type": "array", "items": { "type": "object", "properties": { "component_purl": { "type": "string", "minLength": 1 }, "advisory_id": { "type": "string", "minLength": 1 } }, "required": ["component_purl", "advisory_id"], "additionalProperties": false }, "minItems": 1 }, "callbacks": { "type": ["object", "null"], "properties": { "sse": { "type": ["string", "null"] }, "nats": { "type": ["string", "null"] } }, "additionalProperties": false } }, "required": [ "job_id", "tenant_id", "context_id", "policy_profile_hash", "priority", "requested_at", "status", "determinism_hash", "batch_items" ], "additionalProperties": false }