|
| 1 | +{ |
| 2 | + "$schema": "http://json-schema.org/draft-07/schema#", |
| 3 | + "$id": "https://raw.githubusercontent.com/dtvem/dtvem/main/schemas/manifest.schema.json", |
| 4 | + "title": "dtvem Runtime Manifest", |
| 5 | + "description": "Manifest file containing available versions and download URLs for a runtime", |
| 6 | + "type": "object", |
| 7 | + "required": ["version", "versions"], |
| 8 | + "additionalProperties": false, |
| 9 | + "properties": { |
| 10 | + "version": { |
| 11 | + "type": "integer", |
| 12 | + "const": 1, |
| 13 | + "description": "Manifest format version (currently 1)" |
| 14 | + }, |
| 15 | + "versions": { |
| 16 | + "type": "object", |
| 17 | + "description": "Map of version strings to platform availability", |
| 18 | + "additionalProperties": { |
| 19 | + "$ref": "#/$defs/platformMap" |
| 20 | + } |
| 21 | + } |
| 22 | + }, |
| 23 | + "$defs": { |
| 24 | + "platformMap": { |
| 25 | + "type": "object", |
| 26 | + "description": "Map of platform keys to download info or null (unavailable)", |
| 27 | + "propertyNames": { |
| 28 | + "enum": [ |
| 29 | + "windows-amd64", |
| 30 | + "windows-arm64", |
| 31 | + "windows-386", |
| 32 | + "darwin-amd64", |
| 33 | + "darwin-arm64", |
| 34 | + "linux-amd64", |
| 35 | + "linux-arm64", |
| 36 | + "linux-arm", |
| 37 | + "linux-386" |
| 38 | + ] |
| 39 | + }, |
| 40 | + "additionalProperties": { |
| 41 | + "oneOf": [ |
| 42 | + { "$ref": "#/$defs/download" }, |
| 43 | + { "type": "null" } |
| 44 | + ] |
| 45 | + } |
| 46 | + }, |
| 47 | + "download": { |
| 48 | + "type": "object", |
| 49 | + "description": "Download information for a pre-built binary", |
| 50 | + "required": ["url", "sha256"], |
| 51 | + "additionalProperties": false, |
| 52 | + "properties": { |
| 53 | + "url": { |
| 54 | + "type": "string", |
| 55 | + "format": "uri", |
| 56 | + "description": "Direct download URL for the binary archive" |
| 57 | + }, |
| 58 | + "sha256": { |
| 59 | + "type": "string", |
| 60 | + "pattern": "^[a-fA-F0-9]{64}$", |
| 61 | + "description": "SHA256 checksum (64 hex characters)" |
| 62 | + } |
| 63 | + } |
| 64 | + } |
| 65 | + }, |
| 66 | + "examples": [ |
| 67 | + { |
| 68 | + "version": 1, |
| 69 | + "versions": { |
| 70 | + "3.13.1": { |
| 71 | + "windows-amd64": { |
| 72 | + "url": "https://www.python.org/ftp/python/3.13.1/python-3.13.1-embed-amd64.zip", |
| 73 | + "sha256": "a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2" |
| 74 | + }, |
| 75 | + "darwin-arm64": null, |
| 76 | + "linux-amd64": { |
| 77 | + "url": "https://github.com/astral-sh/python-build-standalone/releases/download/20251209/cpython-3.13.1.tar.gz", |
| 78 | + "sha256": "b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3d4e5f6a1b2c3" |
| 79 | + } |
| 80 | + } |
| 81 | + } |
| 82 | + } |
| 83 | + ] |
| 84 | +} |
0 commit comments