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:
33
docs/modules/policy/schemas/policy-snapshot@draft.json
Normal file
33
docs/modules/policy/schemas/policy-snapshot@draft.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "policy-snapshot@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"snapshot_id": { "type": "string", "minLength": 1 },
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"ledger_export_id": { "type": "string", "minLength": 1 },
|
||||
"generated_at": { "type": "string", "format": "date-time" },
|
||||
"overlay_hash": { "type": "string", "minLength": 1 },
|
||||
"status_counts": { "type": "object", "additionalProperties": { "type": "integer" } },
|
||||
"records": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tenant_id": { "type": "string" },
|
||||
"job_id": { "type": "string" },
|
||||
"context_id": { "type": "string" },
|
||||
"component_purl": { "type": "string" },
|
||||
"advisory_id": { "type": "string" },
|
||||
"status": { "type": "string" },
|
||||
"trace_ref": { "type": "string" },
|
||||
"occurred_at": { "type": "string", "format": "date-time" }
|
||||
},
|
||||
"required": ["tenant_id", "job_id", "context_id", "component_purl", "advisory_id", "status", "trace_ref", "occurred_at"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"required": ["snapshot_id", "tenant_id", "ledger_export_id", "generated_at", "overlay_hash", "status_counts", "records"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user