Skip to content

Commit 3779c09

Browse files
committed
add schema (please work)
1 parent 08f9575 commit 3779c09

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

schema.json

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
{
2+
"$schema": "http://json-schema.org/draft-07/schema#",
3+
"type": "object",
4+
"properties": {
5+
"topic": {
6+
"type": "string"
7+
},
8+
"subcategory_of": {
9+
"type": "string"
10+
},
11+
"location": {
12+
"type": "string",
13+
"default": "fun/drops"
14+
},
15+
"packs": {
16+
"type": "array",
17+
"items": {
18+
"type": "object",
19+
"properties": {
20+
"pack_id": {
21+
"type": "string"
22+
},
23+
"pack_name": {
24+
"type": "string"
25+
},
26+
"pack_description": {
27+
"type": "string"
28+
},
29+
"conflict": {
30+
"type": "array",
31+
"items": {
32+
"type": "string"
33+
}
34+
},
35+
"message": {
36+
"type": "array",
37+
"items": [
38+
{
39+
"type": "string",
40+
"enum": ["warn", "error", "info"]
41+
},
42+
{
43+
"type": "string"
44+
}
45+
],
46+
"minItems": 2,
47+
"maxItems": 2
48+
},
49+
"icon": {
50+
"type": "string",
51+
"default": "png"
52+
},
53+
"priority": {
54+
"type": "integer",
55+
"default": 0
56+
},
57+
"regolith": {
58+
"type": "boolean"
59+
}
60+
},
61+
"required": ["pack_id", "pack_name", "pack_description"]
62+
}
63+
}
64+
},
65+
"required": ["topic", "packs"]
66+
}

0 commit comments

Comments
 (0)