Add update.json.schema
This commit is contained in:
parent
01a1cfebed
commit
37a3201894
56
update.json.schema
Normal file
56
update.json.schema
Normal file
@ -0,0 +1,56 @@
|
||||
{
|
||||
"$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"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user