Download schemas/evidence-pack-ref.schema.json from deepstack-ml/deepstack-api-v2-contracts: direct link, hf CLI and curl.
- Browser
- Download file 1.21 kB
-
https://huggingface.co/datasets/deepstack-ml/deepstack-api-v2-contracts/resolve/main/schemas/evidence-pack-ref.schema.json
- Command line
-
hf download hf://datasets/deepstack-ml/deepstack-api-v2-contracts/schemas/evidence-pack-ref.schema.json
-
curl -L -o evidence-pack-ref.schema.json https://huggingface.co/datasets/deepstack-ml/deepstack-api-v2-contracts/resolve/main/schemas/evidence-pack-ref.schema.json
1.21 kB
| { | |
| "$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" } | |
| } | |
| } | |