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:
40
docs/modules/policy/schemas/policy-ledger-export@draft.json
Normal file
40
docs/modules/policy/schemas/policy-ledger-export@draft.json
Normal file
@@ -0,0 +1,40 @@
|
||||
{
|
||||
"$schema": "http://json-schema.org/draft-07/schema#",
|
||||
"title": "policy-ledger-export@draft",
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"manifest": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"export_id": { "type": "string", "minLength": 1 },
|
||||
"schema_version": { "type": "string", "minLength": 1 },
|
||||
"generated_at": { "type": "string", "format": "date-time" },
|
||||
"record_count": { "type": "integer", "minimum": 0 },
|
||||
"sha256": { "type": "string", "minLength": 1 }
|
||||
},
|
||||
"required": ["export_id", "schema_version", "generated_at", "record_count", "sha256"],
|
||||
"additionalProperties": false
|
||||
},
|
||||
"records": {
|
||||
"type": "array",
|
||||
"items": {
|
||||
"type": "object",
|
||||
"properties": {
|
||||
"tenant_id": { "type": "string", "minLength": 1 },
|
||||
"job_id": { "type": "string", "minLength": 1 },
|
||||
"context_id": { "type": "string", "minLength": 1 },
|
||||
"component_purl": { "type": "string", "minLength": 1 },
|
||||
"advisory_id": { "type": "string", "minLength": 1 },
|
||||
"status": { "type": "string", "minLength": 1 },
|
||||
"trace_ref": { "type": "string", "minLength": 1 },
|
||||
"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
|
||||
}
|
||||
},
|
||||
"lines": { "type": "array", "items": { "type": "string" } }
|
||||
},
|
||||
"required": ["manifest", "records", "lines"],
|
||||
"additionalProperties": false
|
||||
}
|
||||
Reference in New Issue
Block a user