|
| 1 | +{ |
| 2 | + "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | + "$id": "https://schemas.srcos.ai/v2/ImagePromotionGate.json", |
| 4 | + "title": "ImagePromotionGate", |
| 5 | + "description": "Promotion decision envelope for whether a candidate image may update a Git repository and mark a task complete.", |
| 6 | + "type": "object", |
| 7 | + "additionalProperties": false, |
| 8 | + "required": ["id", "type", "specVersion", "candidateBuildRef", "profileRef", "requiredArtifacts", "requiredChecks", "decision", "gitUpdate", "taskCompletion"], |
| 9 | + "properties": { |
| 10 | + "id": { "type": "string", "pattern": "^urn:srcos:image-gate:" }, |
| 11 | + "type": { "const": "ImagePromotionGate" }, |
| 12 | + "specVersion": { "type": "string" }, |
| 13 | + "candidateBuildRef": { "type": "string" }, |
| 14 | + "profileRef": { "type": "string", "pattern": "^urn:srcos:control-node:" }, |
| 15 | + "requiredArtifacts": { "type": "array", "items": { "type": "string" } }, |
| 16 | + "requiredChecks": { "type": "array", "items": { "type": "string" } }, |
| 17 | + "decision": { "enum": ["pending", "approved", "denied", "waived"] }, |
| 18 | + "reasonCodes": { "type": "array", "items": { "type": "string" } }, |
| 19 | + "gitUpdate": { |
| 20 | + "type": "object", |
| 21 | + "additionalProperties": false, |
| 22 | + "required": ["allowed"], |
| 23 | + "properties": { |
| 24 | + "allowed": { "type": "boolean" }, |
| 25 | + "targetRepo": { "type": ["string", "null"] }, |
| 26 | + "targetRef": { "type": ["string", "null"] } |
| 27 | + } |
| 28 | + }, |
| 29 | + "taskCompletion": { |
| 30 | + "type": "object", |
| 31 | + "additionalProperties": false, |
| 32 | + "required": ["allowed"], |
| 33 | + "properties": { |
| 34 | + "allowed": { "type": "boolean" }, |
| 35 | + "issueRef": { "type": ["string", "null"] } |
| 36 | + } |
| 37 | + } |
| 38 | + } |
| 39 | +} |
0 commit comments