|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "https://github.com/GrayCodeAI/hawk/blob/main/compatibility-matrix.schema.json", |
| 4 | + "title": "GrayCodeAI compatibility matrix", |
| 5 | + "description": "Schema for compatibility-matrix.json — records which combinations of component versions are tested together.", |
| 6 | + "type": "object", |
| 7 | + "required": ["version", "components", "dependencies", "matrices"], |
| 8 | + "properties": { |
| 9 | + "$schema": { "type": "string" }, |
| 10 | + "description": { "type": "string" }, |
| 11 | + "version": { "type": "string", "description": "Schema version of this file (independent of any component version)." }, |
| 12 | + "updated": { "type": "string", "format": "date" }, |
| 13 | + "components": { |
| 14 | + "type": "array", |
| 15 | + "description": "Canonical list of component (repo) names in the eco.", |
| 16 | + "items": { "type": "string" }, |
| 17 | + "uniqueItems": true, |
| 18 | + "minItems": 1 |
| 19 | + }, |
| 20 | + "dependencies": { |
| 21 | + "type": "object", |
| 22 | + "description": "Per-component dependency list — which other eco components a given one consumes. Drives test ordering and impact analysis.", |
| 23 | + "additionalProperties": { |
| 24 | + "type": "array", |
| 25 | + "items": { "type": "string" } |
| 26 | + } |
| 27 | + }, |
| 28 | + "matrices": { |
| 29 | + "type": "array", |
| 30 | + "description": "Named version combinations that are tested together.", |
| 31 | + "items": { |
| 32 | + "type": "object", |
| 33 | + "required": ["name", "components"], |
| 34 | + "properties": { |
| 35 | + "name": { "type": "string" }, |
| 36 | + "description": { "type": "string" }, |
| 37 | + "components": { |
| 38 | + "type": "object", |
| 39 | + "description": "Map of component name → version. Use `main` to mean the latest commit on the main branch (tested every PR).", |
| 40 | + "additionalProperties": { "type": "string" } |
| 41 | + } |
| 42 | + } |
| 43 | + }, |
| 44 | + "minItems": 1 |
| 45 | + } |
| 46 | + } |
| 47 | +} |
0 commit comments