Skip to content

Commit 74e29c6

Browse files
authored
Merge pull request #46 from DannyBen/feature/44
Feature: add json schema for config
2 parents dc7190f + f32d736 commit 74e29c6

File tree

1 file changed

+49
-0
lines changed

1 file changed

+49
-0
lines changed

schemas/completely.json

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"title": "completion",
4+
"description": "A completion of the current application",
5+
"type": "object",
6+
"patternProperties": {
7+
".": {
8+
"title": "completions",
9+
"description": "Completions of the current command or sub-command",
10+
"type": "array",
11+
"minItems": 1,
12+
"uniqueItems": true,
13+
"items": {
14+
"description": "A completion of the current command or sub-command",
15+
"type": "string",
16+
"minLength": 1,
17+
"examples": [
18+
"--help",
19+
"--version",
20+
"-h",
21+
"-v",
22+
"<alias>",
23+
"<arrayvar>",
24+
"<binding>",
25+
"<builtin>",
26+
"<command>",
27+
"<directory>",
28+
"<disabled>",
29+
"<enabled>",
30+
"<export>",
31+
"<file>",
32+
"<function>",
33+
"<group>",
34+
"<helptopic>",
35+
"<hostname>",
36+
"<job>",
37+
"<keyword>",
38+
"<running>",
39+
"<service>",
40+
"<signal>",
41+
"<stopped>",
42+
"<user>",
43+
"<variable>"
44+
]
45+
}
46+
}
47+
},
48+
"additionalProperties": false
49+
}

0 commit comments

Comments
 (0)