SPB Git

Repository Public

pack-manifest.v1.schema.json 4.3 KB 66 lines json

1{2  "$schema": "https://json-schema.org/draft/2020-12/schema",3  "$id": "https://www.orixlab.dev/schemas/cosmos/pack-manifest.v1.schema.json",4  "$comment": "ORIX Cosmos | File: DataPipeline/packs/schema/pack-manifest.v1.schema.json | Description: JSON Schema of manifest.json, pack manifest schema version 1 (canonical key names; the legacy aliases format/name/bytes/licence/provenance_id accepted by the reader are not part of the schema). | Author: Simon-Pierre Boucher | Contact: contact@spboucher.ai",5  "title": "ORIX Cosmos pack manifest, schema version 1",6  "type": "object",7  "required": ["schemaVersion", "id", "version", "kind", "title", "installedSize", "files", "redistribution"],8  "additionalProperties": true,9  "properties": {10    "schemaVersion": { "const": 1, "description": "Version of this schema. A reader refuses any other value." },11    "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]{0,63}$", "description": "Stable pack identifier; also the name of the pack directory." },12    "version": { "$ref": "#/$defs/semver", "description": "Semantic version of the pack content." },13    "kind": { "enum": ["ephemeris", "catalogue", "textures", "sky-imagery", "missions", "satellites", "time", "other"] },14    "title": { "$ref": "#/$defs/localized" },15    "description": { "$ref": "#/$defs/localized" },16    "installedSize": { "type": "integer", "minimum": 0, "description": "Bytes: sum of files[].size." },17    "downloadSize": { "type": "integer", "minimum": 0, "description": "Bytes of the distribution archive when known by the builder." },18    "files": { "type": "array", "items": { "$ref": "#/$defs/file" } },19    "sources": { "type": "array", "items": { "$ref": "#/$defs/source" } },20    "license": { "type": "string", "description": "Licence summary of the pack as a whole." },21    "coverage": { "description": "Free-form structured coverage (time span, magnitude limit, object counts...)." },22    "redistribution": { "enum": ["redistributable", "localBuildOnly"] },23    "dependencies": {24      "type": "array",25      "items": {26        "type": "object", "required": ["id"], "additionalProperties": false,27        "properties": { "id": { "type": "string", "pattern": "^[a-z0-9][a-z0-9._-]{0,63}$" }, "minimumVersion": { "$ref": "#/$defs/semver" } }28      }29    },30    "minimumAppVersion": { "$ref": "#/$defs/semver" },31    "signature": {32      "type": "object", "required": ["algorithm", "keyID", "file"], "additionalProperties": false,33      "properties": { "algorithm": { "const": "ed25519" }, "keyID": { "type": "string", "minLength": 1 }, "file": { "const": "manifest.sig" } }34    }35  },36  "$defs": {37    "semver": { "type": "string", "pattern": "^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z.-]+)?$" },38    "localized": {39      "type": "object", "required": ["en"], "minProperties": 1,40      "additionalProperties": { "type": "string" },41      "properties": { "en": { "type": "string", "minLength": 1 }, "fr": { "type": "string" } },42      "description": "Text by BCP-47 language code. English is mandatory."43    },44    "file": {45      "type": "object", "required": ["path", "size", "sha256"], "additionalProperties": true,46      "properties": {47        "path": { "type": "string", "minLength": 1, "maxLength": 1024, "description": "Relative, '/'-separated; no '.', '..', empty component, backslash, control character; not manifest.json / manifest.sig; first component does not start with a dot." },48        "size": { "type": "integer", "minimum": 0 },49        "sha256": { "type": "string", "pattern": "^[0-9a-f]{64}$" },50        "role": { "type": "string" },51        "description": { "type": "string" },52        "source": { "type": "string", "description": "id of an entry of sources[]." },53        "url": { "type": "string", "description": "Upstream URL of this file when redistributed unmodified." }54      }55    },56    "source": {57      "type": "object", "required": ["id", "name", "version", "license"], "additionalProperties": false,58      "properties": {59        "id": { "type": "string", "minLength": 1 }, "name": { "type": "string", "minLength": 1 }, "url": { "type": "string" },60        "version": { "type": "string" }, "retrieved": { "type": "string", "description": "ISO-8601 date." },61        "license": { "type": "string" }, "citation": { "type": "string" }, "method": { "type": "string" }62      }63    }64  }65}66
Files main
Menu

Theme