atlas-iac/services/hermes/contracts/hux/release-ledger.schema.json

21 lines
1005 B
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://hermes.bstein.dev/contracts/hux/v1/release-ledger.schema.json",
"title": "HUX immutable release ledger entry",
"type": "object",
"additionalProperties": false,
"required": ["schema", "release_id", "owner", "project_id", "conversation_id", "sequence", "at", "previous_hash", "entry_hash", "snapshot"],
"properties": {
"schema": {"const": "hux.release_ledger_entry.v1"},
"release_id": {"$ref": "common.schema.json#/$defs/id"},
"owner": {"$ref": "common.schema.json#/$defs/user_ref"},
"project_id": {"$ref": "common.schema.json#/$defs/id"},
"conversation_id": {"$ref": "common.schema.json#/$defs/id"},
"sequence": {"type": "integer", "minimum": 1},
"at": {"$ref": "common.schema.json#/$defs/timestamp"},
"previous_hash": {"$ref": "common.schema.json#/$defs/sha256"},
"entry_hash": {"$ref": "common.schema.json#/$defs/sha256"},
"snapshot": {"$ref": "release.schema.json"}
}
}