hmcl-update/update.json.schema
2025-10-02 14:14:47 +08:00

56 lines
1.4 KiB
Plaintext

{
"$schema": "http://json-schema.org/draft-07/schema#",
"type": "object",
"properties": {
"dev": {
"$ref": "#/definitions/info"
},
"dev-preview": {
"$ref": "#/definitions/info"
},
"stable": {
"$ref": "#/definitions/info"
},
"stable-preview": {
"$ref": "#/definitions/info"
}
},
"additionalProperties": false,
"required": [
"dev",
"stable"
],
"definitions": {
"info": {
"type": "object",
"properties": {
"version": {
"type": "string",
"pattern": "^[0-9]+(\\.[0-9]+)+$"
},
"jar": {
"type": "string",
"format": "uri"
},
"jarsha1": {
"type": "string",
"pattern": "^[a-f0-9]{40}$"
},
"universal": {
"type": "string",
"format": "uri"
},
"force": {
"type": "boolean"
}
},
"additionalProperties": false,
"required": [
"version",
"jar",
"jarsha1",
"universal"
]
}
}
}