Download schemas/publication-record.schema.json from deepstack-ml/deepstack-api-v2-contracts: direct link, hf CLI and curl.
- Browser
- Download file 2.18 kB
-
https://huggingface.co/datasets/deepstack-ml/deepstack-api-v2-contracts/resolve/main/schemas/publication-record.schema.json
- Command line
-
hf download hf://datasets/deepstack-ml/deepstack-api-v2-contracts/schemas/publication-record.schema.json
-
curl -L -o publication-record.schema.json https://huggingface.co/datasets/deepstack-ml/deepstack-api-v2-contracts/resolve/main/schemas/publication-record.schema.json
2.18 kB
| { | |
| "$schema": "https://json-schema.org/draft/2020-12/schema", | |
| "$id": "publication-record.schema.json", | |
| "title": "PublicationRecord", | |
| "description": "One publication (INF-18, R4): a versioned, content-addressed artifact that a public projection reads. It is committed through an outbox: the artifact is written and read back first, then the commit event, then the pointer moves by compare-and-swap. Replaying the committed outbox rebuilds the same projection, byte for byte (projection_sha256). version grows by one per kind; prev_publication_id chains the versions; nothing is overwritten.", | |
| "type": "object", | |
| "additionalProperties": false, | |
| "required": [ | |
| "schema_version", | |
| "publication_id", | |
| "kind", | |
| "version", | |
| "content_sha256", | |
| "artifact_key", | |
| "media_type", | |
| "size_bytes", | |
| "prev_publication_id", | |
| "source_refs", | |
| "committed_at", | |
| "environment" | |
| ], | |
| "properties": { | |
| "schema_version": { | |
| "$ref": "common.schema.json#/$defs/schema_version" | |
| }, | |
| "publication_id": { | |
| "type": "string", | |
| "pattern": "^pub_[0-9a-f]{24}$" | |
| }, | |
| "kind": { | |
| "enum": [ | |
| "trackrecord", | |
| "catalog", | |
| "dataset_manifest", | |
| "space_manifest", | |
| "cohort_report" | |
| ] | |
| }, | |
| "version": { | |
| "type": "integer", | |
| "minimum": 1, | |
| "maximum": 9007199254740991 | |
| }, | |
| "content_sha256": { | |
| "$ref": "common.schema.json#/$defs/sha256" | |
| }, | |
| "artifact_key": { | |
| "type": "string", | |
| "pattern": "^objects/[0-9a-f]{64}\\.json$" | |
| }, | |
| "media_type": { | |
| "const": "application/json" | |
| }, | |
| "size_bytes": { | |
| "type": "integer", | |
| "minimum": 2, | |
| "maximum": 67108864 | |
| }, | |
| "prev_publication_id": { | |
| "type": [ | |
| "string", | |
| "null" | |
| ], | |
| "pattern": "^pub_[0-9a-f]{24}$" | |
| }, | |
| "source_refs": { | |
| "type": "array", | |
| "maxItems": 64, | |
| "uniqueItems": true, | |
| "items": { | |
| "$ref": "common.schema.json#/$defs/id" | |
| } | |
| }, | |
| "committed_at": { | |
| "$ref": "common.schema.json#/$defs/utc" | |
| }, | |
| "environment": { | |
| "$ref": "common.schema.json#/$defs/environment" | |
| } | |
| } | |
| } | |