|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "https://openexit.dev/schemas/openexit.evidence-bundle.schema.json", |
| 4 | + "title": "OpenExit Evidence Bundle Manifest", |
| 5 | + "type": "object", |
| 6 | + "required": ["apiVersion", "kind", "generatedAt", "build", "project", "validation", "files"], |
| 7 | + "additionalProperties": false, |
| 8 | + "properties": { |
| 9 | + "apiVersion": { "const": "openexit.dev/v1alpha1" }, |
| 10 | + "kind": { "const": "EvidenceBundle" }, |
| 11 | + "generatedAt": { "type": "string", "format": "date-time" }, |
| 12 | + "build": { |
| 13 | + "type": "object", |
| 14 | + "required": ["version", "commit", "date"], |
| 15 | + "additionalProperties": false, |
| 16 | + "properties": { |
| 17 | + "version": { "type": "string", "minLength": 1 }, |
| 18 | + "commit": { "type": "string", "minLength": 1 }, |
| 19 | + "date": { "type": "string", "minLength": 1 } |
| 20 | + } |
| 21 | + }, |
| 22 | + "project": { |
| 23 | + "type": "object", |
| 24 | + "required": ["name", "source", "target"], |
| 25 | + "additionalProperties": false, |
| 26 | + "properties": { |
| 27 | + "name": { "type": "string", "minLength": 1 }, |
| 28 | + "source": { "type": "string" }, |
| 29 | + "target": { "type": "string" } |
| 30 | + } |
| 31 | + }, |
| 32 | + "validation": { |
| 33 | + "type": "object", |
| 34 | + "required": ["status", "checks", "passed", "failed", "warnings"], |
| 35 | + "additionalProperties": false, |
| 36 | + "properties": { |
| 37 | + "status": { "enum": ["passed", "failed"] }, |
| 38 | + "checks": { "type": "integer", "minimum": 0 }, |
| 39 | + "passed": { "type": "integer", "minimum": 0 }, |
| 40 | + "failed": { "type": "integer", "minimum": 0 }, |
| 41 | + "warnings": { "type": "integer", "minimum": 0 } |
| 42 | + } |
| 43 | + }, |
| 44 | + "files": { |
| 45 | + "type": "array", |
| 46 | + "minItems": 1, |
| 47 | + "items": { |
| 48 | + "type": "object", |
| 49 | + "required": ["path", "size", "sha256"], |
| 50 | + "additionalProperties": false, |
| 51 | + "properties": { |
| 52 | + "path": { |
| 53 | + "type": "string", |
| 54 | + "minLength": 1, |
| 55 | + "pattern": "^[^/].*" |
| 56 | + }, |
| 57 | + "size": { "type": "integer", "minimum": 0 }, |
| 58 | + "sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" } |
| 59 | + } |
| 60 | + } |
| 61 | + } |
| 62 | + } |
| 63 | +} |
0 commit comments