File size: 1,207 Bytes
1e3bc19 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 | {
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "evidence-pack-ref.schema.json",
"title": "EvidencePackRef",
"description": "A frozen, hash-addressed pack of evidence a request may cite. The hash, phase and policy are part of every cache key; a change of rights or phase invalidates the pack before its next use.",
"type": "object",
"additionalProperties": false,
"required": ["schema_version", "pack_id", "snapshot_id", "content_hash", "policy_version", "as_of", "phase", "allowed_evidence_ids", "expires_at"],
"properties": {
"schema_version": { "$ref": "common.schema.json#/$defs/schema_version" },
"pack_id": { "$ref": "common.schema.json#/$defs/id" },
"snapshot_id": { "$ref": "common.schema.json#/$defs/id" },
"content_hash": { "$ref": "common.schema.json#/$defs/sha256" },
"policy_version": { "$ref": "common.schema.json#/$defs/id" },
"as_of": { "$ref": "common.schema.json#/$defs/utc" },
"phase": { "$ref": "common.schema.json#/$defs/phase" },
"allowed_evidence_ids": { "type": "array", "uniqueItems": true, "items": { "$ref": "common.schema.json#/$defs/id" } },
"expires_at": { "$ref": "common.schema.json#/$defs/utc" }
}
}
|