28 lines
1.0 KiB
JSON
28 lines
1.0 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://aas.example/schemas/v1/freeze-manifest.schema.json",
|
|
"title": "AAS v1 protected baseline freeze manifest",
|
|
"type": "object",
|
|
"required": ["schemaVersion", "baselineVersion", "gitCommit", "files", "reviewApprovals", "createdByProtectedRun"],
|
|
"properties": {
|
|
"schemaVersion": { "const": 1 },
|
|
"baselineVersion": { "type": "string" },
|
|
"gitCommit": { "type": "string", "pattern": "^[0-9a-f]{40}$" },
|
|
"files": {
|
|
"type": "array",
|
|
"minItems": 1,
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["path", "sha256", "bytes"],
|
|
"properties": {
|
|
"path": { "type": "string" },
|
|
"sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },
|
|
"bytes": { "type": "integer", "minimum": 0 }
|
|
}
|
|
}
|
|
},
|
|
"reviewApprovals": { "type": "array", "minItems": 2 },
|
|
"createdByProtectedRun": { "type": "object", "required": ["repository", "workflow", "runId", "actor"] }
|
|
}
|
|
}
|