| 1 | { |
| 2 | "$schema": "https://json-schema.org/draft/2020-12/schema", |
| 3 | "title": "SquadScope Image Registry", |
| 4 | "description": "Registry of locally-hosted cover images with license and attribution tracking.", |
| 5 | "type": "object", |
| 6 | "required": ["images"], |
| 7 | "properties": { |
| 8 | "$schema": { "type": "string" }, |
| 9 | "images": { |
| 10 | "type": "array", |
| 11 | "items": { |
| 12 | "type": "object", |
| 13 | "required": ["filename", "license", "added_by"], |
| 14 | "properties": { |
| 15 | "filename": { |
| 16 | "type": "string", |
| 17 | "description": "Relative path from repo root (e.g., assets/covers/2026-W24.webp)", |
| 18 | "pattern": "^(?!https?://|//|/)(?!.*\\.\\.)[\\w./-]+$" |
| 19 | }, |
| 20 | "source_url": { |
| 21 | "type": "string", |
| 22 | "format": "uri", |
| 23 | "description": "Recommended original source URL where the image was obtained for provenance and license compliance" |
| 24 | }, |
| 25 | "license": { |
| 26 | "type": "string", |
| 27 | "enum": ["CC0", "Openverse", "local-asset"], |
| 28 | "description": "License under which the image is used" |
| 29 | }, |
| 30 | "attribution": { |
| 31 | "type": "string", |
| 32 | "description": "Attribution text (author, source site)" |
| 33 | }, |
| 34 | "added_by": { |
| 35 | "type": "string", |
| 36 | "description": "Who added this image (person or automation identifier)" |
| 37 | }, |
| 38 | "added_at": { |
| 39 | "type": "string", |
| 40 | "format": "date", |
| 41 | "description": "ISO date when the image was added" |
| 42 | }, |
| 43 | "used_in": { |
| 44 | "type": "array", |
| 45 | "items": { "type": "string" }, |
| 46 | "description": "List of content paths using this image (e.g., content/weekly/2026/W24.md)" |
| 47 | }, |
| 48 | "dimensions": { |
| 49 | "type": "object", |
| 50 | "properties": { |
| 51 | "width": { "type": "integer" }, |
| 52 | "height": { "type": "integer" } |
| 53 | } |
| 54 | }, |
| 55 | "checksum": { |
| 56 | "type": "string", |
| 57 | "description": "SHA-256 hash of the image file for integrity verification" |
| 58 | }, |
| 59 | "review_status": { |
| 60 | "type": "string", |
| 61 | "enum": ["pending", "approved", "rejected"], |
| 62 | "description": "Policy review status (Hermes approval)" |
| 63 | }, |
| 64 | "alt_text": { |
| 65 | "type": "string", |
| 66 | "description": "Accessible alt text describing the image content" |
| 67 | } |
| 68 | } |
| 69 | } |
| 70 | } |
| 71 | } |
| 72 | } |