37 lines
1.9 KiB
JSON
37 lines
1.9 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://chimera.local/schemas/ps4-package-backup-manifest.schema.json",
|
|
"title": "Chimera verified PS4 package backup manifest",
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["schemaVersion", "kind", "createdAt", "title", "components", "recipe", "dependencies"],
|
|
"properties": {
|
|
"schemaVersion": { "const": 1 },
|
|
"kind": { "const": "chimera.ps4-package-backup.v1" },
|
|
"createdAt": { "type": "integer", "minimum": 0 },
|
|
"title": {
|
|
"type": "object",
|
|
"additionalProperties": false,
|
|
"required": ["platform", "titleId", "name"],
|
|
"properties": { "platform": { "const": "ps4" }, "titleId": { "type": "string", "pattern": "^CUSA[0-9]{5}$" }, "name": { "type": "string" } }
|
|
},
|
|
"components": {
|
|
"type": "array", "minItems": 1, "maxItems": 4,
|
|
"items": {
|
|
"type": "object",
|
|
"required": ["id", "type", "version", "contentId", "size", "sha256", "absolutePath", "required", "order", "adapterHint", "provenance"],
|
|
"properties": {
|
|
"id": { "enum": ["base", "update", "dlc", "unlocker"] },
|
|
"type": { "enum": ["base", "update", "dlc", "unlocker"] },
|
|
"version": { "type": "string" }, "contentId": { "type": "string" }, "size": { "type": "integer", "minimum": 1 },
|
|
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" }, "absolutePath": { "type": "string", "minLength": 1 },
|
|
"originalRelativePath": { "type": "string" }, "normalizedRelativePath": { "type": "string" }, "required": { "type": "boolean" },
|
|
"order": { "type": "integer", "minimum": 1 }, "adapterHint": { "const": "ps4-package" }, "provenance": { "type": "array" }
|
|
}
|
|
}
|
|
},
|
|
"recipe": { "type": "object", "required": ["installOrder"], "properties": { "installOrder": { "type": "array", "minItems": 1 } } },
|
|
"dependencies": { "type": "array" }
|
|
}
|
|
}
|