forked from longtao.wu/droboticflow
28 lines
1.1 KiB
JSON
28 lines
1.1 KiB
JSON
{
|
|
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
"$id": "https://drobotics.example/schemas/drosync-update-manifest-v1.json",
|
|
"title": "drosync signed update manifest",
|
|
"type": "object",
|
|
"required": ["id", "version", "channel", "protocolVersion", "artifacts", "sha256", "signature", "rolloutPercent", "paused"],
|
|
"properties": {
|
|
"id": { "type": "string" },
|
|
"version": { "type": "string" },
|
|
"channel": { "enum": ["canary", "pilot", "stable"] },
|
|
"protocolVersion": { "const": "v1" },
|
|
"minimumServerVersion": { "type": "string" },
|
|
"rolloutPercent": { "type": "integer", "minimum": 0, "maximum": 100 },
|
|
"paused": { "type": "boolean" },
|
|
"artifacts": {
|
|
"type": "object",
|
|
"required": ["windows-x86_64", "linux-x86_64", "macos-arm64"],
|
|
"additionalProperties": { "type": "string", "format": "uri" }
|
|
},
|
|
"sha256": {
|
|
"type": "object",
|
|
"additionalProperties": { "type": "string", "pattern": "^[a-f0-9]{64}$" }
|
|
},
|
|
"signature": { "type": "string", "contentEncoding": "base64" }
|
|
},
|
|
"additionalProperties": false
|
|
}
|