up
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
api-governance / spectral-lint (push) Has been cancelled
Some checks failed
AOC Guard CI / aoc-guard (push) Has been cancelled
AOC Guard CI / aoc-verify (push) Has been cancelled
Docs CI / lint-and-preview (push) Has been cancelled
Mirror Thin Bundle Sign & Verify / mirror-sign (push) Has been cancelled
api-governance / spectral-lint (push) Has been cancelled
This commit is contained in:
29
docs/modules/policy/schemas/policy-worker-result@draft.json
Normal file
29
docs/modules/policy/schemas/policy-worker-result@draft.json
Normal file
@@ -0,0 +1,29 @@
|
||||
{
|
||||
"$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
|
||||
}
|
||||
Reference in New Issue
Block a user