-
Notifications
You must be signed in to change notification settings - Fork 0
/
appcast.schema.json
84 lines (84 loc) · 2.6 KB
/
appcast.schema.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
{
"$schema": "http://json-schema.org/draft-04/schema#",
"description": "JSON schema for use with sxupdate library, used to hold metadata for version updates",
"required": [
"items"
],
"type": "object",
"properties": {
"comment": {
"type": "string"
},
"title": {
"type": "string"
},
"link": {
"type": "string"
},
"description": {
"type": "string"
},
"language": {
"type": "string"
},
"items": {
"type": "array",
"minItems": 1,
"items": [
{
"type": "object",
"properties": {
"version": {
"description": "Representation of semantic version. See https://semver.org/",
"type": "object",
"required": [ "major", "minor", "patch" ],
"properties": {
"major": { "type": "integer" },
"minor": { "type": "integer" },
"patch": { "type": "integer" },
"prerelease": {
"description": "Non-blank string consisting of one or more non-blank identifiers, each one of more chars in the range [0-9A-Za-z-]",
"type": "string"
},
"meta": {
"type": "string"
}
}
},
"enclosure": {
"type": "object",
"properties": {
"url": {
"description": "Must be of the form https://... (fetch from URL), file://... (local file), or a local file path, relative to the URL where this JSON document is located, containing no colon or backslash character",
"pattern": "^(((https|file)://[^/].*)|[^:\\\\]+)$",
"type": "string"
},
"length": {
"type": "integer"
},
"filename": {
"description": "Name of the file that will be downloaded. May only contain alphanumeric characters, slash, dash, underscore and period, may not contain two slashes in a row, and may not end with a slash",
"pattern": "^/?([-_A-Za-z0-9.]+/?)*[-_A-Za-z0-9.]$",
"type": "string"
},
"signature": {
"type": "string"
}
},
"required": [
"url",
"length",
"filename",
"signature"
]
}
},
"required": [
"version",
"enclosure"
]
}
]
}
}
}