mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-11 22:13:23 -05:00
fix: read the clone map beside the scanned tree
This commit is contained in:
1 parent
be2daab00c
commit
82bdcfa1b1
5 files changed
+133
-42
No files matched your search
+105
-24
@@ -4,55 +4,136 @@
|
||||
"title": "RetroBIOS content database",
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["schema_version", "generated_at", "total_files", "total_size", "files", "indexes"],
|
||||
"required": [
|
||||
"schema_version",
|
||||
"generated_at",
|
||||
"total_files",
|
||||
"total_size",
|
||||
"files",
|
||||
"indexes"
|
||||
],
|
||||
"properties": {
|
||||
"schema_version": { "const": 1 },
|
||||
"generated_at": { "type": "string", "format": "date-time" },
|
||||
"total_files": { "type": "integer", "minimum": 0 },
|
||||
"total_size": { "type": "integer", "minimum": 0 },
|
||||
"schema_version": {
|
||||
"const": 1
|
||||
},
|
||||
"generated_at": {
|
||||
"type": "string",
|
||||
"format": "date-time"
|
||||
},
|
||||
"total_files": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"total_size": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"bios_dir": {
|
||||
"type": "string",
|
||||
"description": "Directory the files were scanned from; _mame_clones.json sits beside it."
|
||||
},
|
||||
"files": {
|
||||
"type": "object",
|
||||
"propertyNames": { "pattern": "^[a-f0-9]{40}$" },
|
||||
"propertyNames": {
|
||||
"pattern": "^[a-f0-9]{40}$"
|
||||
},
|
||||
"additionalProperties": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["path", "name", "size", "sha1", "md5", "sha256", "crc32", "adler32"],
|
||||
"required": [
|
||||
"path",
|
||||
"name",
|
||||
"size",
|
||||
"sha1",
|
||||
"md5",
|
||||
"sha256",
|
||||
"crc32",
|
||||
"adler32"
|
||||
],
|
||||
"properties": {
|
||||
"path": { "type": "string", "minLength": 1 },
|
||||
"name": { "type": "string", "minLength": 1 },
|
||||
"size": { "type": "integer", "minimum": 0 },
|
||||
"sha1": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
||||
"md5": { "type": "string", "pattern": "^[a-f0-9]{32}$" },
|
||||
"sha256": { "type": "string", "pattern": "^[a-f0-9]{64}$" },
|
||||
"crc32": { "type": "string", "pattern": "^[a-f0-9]{8}$" },
|
||||
"adler32": { "type": "string", "pattern": "^[a-f0-9]{8}$" },
|
||||
"provenance": { "type": "object" }
|
||||
"path": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"name": {
|
||||
"type": "string",
|
||||
"minLength": 1
|
||||
},
|
||||
"size": {
|
||||
"type": "integer",
|
||||
"minimum": 0
|
||||
},
|
||||
"sha1": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{40}$"
|
||||
},
|
||||
"md5": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{32}$"
|
||||
},
|
||||
"sha256": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{64}$"
|
||||
},
|
||||
"crc32": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{8}$"
|
||||
},
|
||||
"adler32": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{8}$"
|
||||
},
|
||||
"provenance": {
|
||||
"type": "object"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"indexes": {
|
||||
"type": "object",
|
||||
"additionalProperties": false,
|
||||
"required": ["by_md5", "by_name", "by_crc32", "by_sha256", "by_path_suffix"],
|
||||
"required": [
|
||||
"by_md5",
|
||||
"by_name",
|
||||
"by_crc32",
|
||||
"by_sha256",
|
||||
"by_path_suffix"
|
||||
],
|
||||
"properties": {
|
||||
"by_md5": { "$ref": "#/$defs/hashIndex" },
|
||||
"by_crc32": { "$ref": "#/$defs/hashIndex" },
|
||||
"by_sha256": { "$ref": "#/$defs/hashIndex" },
|
||||
"by_name": { "$ref": "#/$defs/listIndex" },
|
||||
"by_path_suffix": { "$ref": "#/$defs/listIndex" }
|
||||
"by_md5": {
|
||||
"$ref": "#/$defs/hashIndex"
|
||||
},
|
||||
"by_crc32": {
|
||||
"$ref": "#/$defs/hashIndex"
|
||||
},
|
||||
"by_sha256": {
|
||||
"$ref": "#/$defs/hashIndex"
|
||||
},
|
||||
"by_name": {
|
||||
"$ref": "#/$defs/listIndex"
|
||||
},
|
||||
"by_path_suffix": {
|
||||
"$ref": "#/$defs/listIndex"
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
"$defs": {
|
||||
"hashIndex": {
|
||||
"type": "object",
|
||||
"additionalProperties": { "type": "string", "pattern": "^[a-f0-9]{40}$" }
|
||||
"additionalProperties": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{40}$"
|
||||
}
|
||||
},
|
||||
"listIndex": {
|
||||
"type": "object",
|
||||
"additionalProperties": {
|
||||
"type": "array",
|
||||
"items": { "type": "string", "pattern": "^[a-f0-9]{40}$" },
|
||||
"items": {
|
||||
"type": "string",
|
||||
"pattern": "^[a-f0-9]{40}$"
|
||||
},
|
||||
"minItems": 1,
|
||||
"uniqueItems": true
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user