-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcli.schema.json
More file actions
33 lines (33 loc) · 1.02 KB
/
Copy pathcli.schema.json
File metadata and controls
33 lines (33 loc) · 1.02 KB
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
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "CLI Manifest Schema",
"description": "Schema for CLI tool metadata",
"type": "object",
"allOf": [
{ "$ref": "./ref/app.schema.json" },
{
"type": "object",
"properties": {
"latestVersion": {
"type": "string",
"minLength": 1,
"pattern": "^(?!\\s*(?:[Ll][Aa][Tt][Ee][Ss][Tt]|[Uu][Nn][Kk][Nn][Oo][Ww][Nn]|[Nn]\\/?[Aa]|[Tt][Bb][Dd]|[-—])\\s*$).+$",
"description": "Concrete current CLI version; placeholders such as Latest, Unknown, N/A, or TBD are not allowed"
},
"resourceUrls": {
"type": "object",
"properties": {
"download": {
"type": "string",
"format": "uri",
"pattern": "^https://",
"description": "Official HTTPS download or installation page"
}
},
"required": ["download"]
}
},
"required": ["latestVersion", "resourceUrls"]
}
]
}