File size: 2,180 Bytes
1e3bc19 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 | {
"$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"
}
}
}
|