You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

110 lines
2.5 KiB

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"formatVersion": {
"type": "number",
"const": 1
},
"root": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/__schema0"
},
"version": {
"$ref": "#/$defs/__schema1"
},
"sha256": {
"$ref": "#/$defs/__schema2"
}
},
"required": ["id", "version", "sha256"],
"additionalProperties": false
},
"resolved": {
"type": "array",
"items": {
"type": "object",
"properties": {
"id": {
"$ref": "#/$defs/__schema0"
},
"version": {
"$ref": "#/$defs/__schema1"
},
"sha256": {
"$ref": "#/$defs/__schema2"
}
},
"required": ["id", "version", "sha256"],
"additionalProperties": false
}
},
"files": {
"type": "array",
"items": {
"type": "object",
"properties": {
"packageId": {
"$ref": "#/$defs/__schema0"
},
"path": {
"type": "string",
"pattern": "^[a-zA-Z0-9_-](?:[a-zA-Z0-9_.-]*[a-zA-Z0-9_-])?(?:\\/[a-zA-Z0-9_-](?:[a-zA-Z0-9_.-]*[a-zA-Z0-9_-])?)*$"
},
"sha256": {
"$ref": "#/$defs/__schema2"
},
"bytes": {
"type": "integer",
"minimum": 0,
"maximum": 9007199254740991
},
"mediaType": {
"type": "string",
"minLength": 1
},
"url": {
"anyOf": [
{
"type": "string",
"format": "uri"
},
{
"type": "null"
}
]
}
},
"required": [
"packageId",
"path",
"sha256",
"bytes",
"mediaType",
"url"
],
"additionalProperties": false
}
}
},
"required": ["formatVersion", "root", "resolved", "files"],
"additionalProperties": false,
"$defs": {
"__schema0": {
"type": "string",
"pattern": "^[a-z][a-zA-Z0-9.-]{0,79}$"
},
"__schema1": {
"type": "string",
"pattern": "^(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)$"
},
"__schema2": {
"type": "string",
"pattern": "^[a-f0-9]{64}$"
}
},
"$id": "urn:juegoland:lock:1"
}

Powered by TurnKey Linux.