Files
chimera-Public/schemas/compatibility-provider.schema.json

159 lines
3.4 KiB
JSON

{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"$id": "https://chimera.local/schemas/compatibility-provider.schema.json",
"title": "Chimera compatibility provider payload",
"type": "object",
"additionalProperties": false,
"required": [
"schemaVersion",
"provider",
"revision",
"generatedAt",
"findings"
],
"properties": {
"schemaVersion": {
"const": 1
},
"provider": {
"type": "string",
"minLength": 1
},
"revision": {
"type": "string",
"minLength": 1
},
"generatedAt": {
"type": "string",
"format": "date-time"
},
"findings": {
"type": "array",
"items": {
"type": "object",
"additionalProperties": false,
"required": [
"id",
"title",
"state",
"summary",
"applicability",
"confidence"
],
"properties": {
"id": {
"type": "string"
},
"title": {
"type": "object",
"required": [
"platform"
],
"properties": {
"platform": {
"enum": [
"ps4",
"ps5"
]
},
"titleId": {
"type": [
"string",
"null"
]
},
"contentId": {
"type": [
"string",
"null"
]
}
}
},
"state": {
"enum": [
"compatible",
"incompatible",
"workaround",
"unknown"
]
},
"severity": {
"enum": [
"info",
"warning",
"blocking"
]
},
"summary": {
"type": "string"
},
"details": {
"type": "string"
},
"applicability": {
"type": "object",
"properties": {
"gameVersion": {
"type": [
"string",
"null"
]
},
"firmwareRange": {
"type": [
"string",
"null"
]
},
"loaderRange": {
"type": [
"string",
"null"
]
},
"storageTypes": {
"type": "array",
"items": {
"enum": [
"internal",
"m2",
"usb",
"server",
"unknown"
]
}
},
"formats": {
"type": "array",
"items": {
"type": "string"
}
}
}
},
"requires": {
"type": "array",
"items": {
"type": "string"
}
},
"confidence": {
"enum": [
"low",
"medium",
"high"
]
},
"sourceUrl": {
"type": [
"string",
"null"
]
}
}
}
}
}
}