Skip to content

Commit 4eb5da3

Browse files
EmilySeville7cfgEmilySeville7cfg
authored andcommitted
feat: add json schema
Validate top-level properties.
1 parent 7b90f72 commit 4eb5da3

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

schema.json

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema",
3+
"title": "cli",
4+
"description": "A CLI of the current application",
5+
"type": "object",
6+
"properties": {
7+
"name": {
8+
"title": "name",
9+
"description": "A name of the current application",
10+
"type": "string",
11+
"minLength": 1,
12+
"examples": [
13+
"download"
14+
]
15+
},
16+
"help": {
17+
"title": "help",
18+
"description": "A description of the current application",
19+
"type": "string",
20+
"minLength": 1,
21+
"examples": [
22+
"Sample minimal application without commands"
23+
]
24+
},
25+
"version": {
26+
"title": "version",
27+
"description": "A version of the current application",
28+
"type": "string",
29+
"minLength": 1,
30+
"examples": [
31+
"0.1.0"
32+
]
33+
}
34+
},
35+
"additionalProperties": false
36+
}

0 commit comments

Comments
 (0)