forked from pca006132/CommandReference
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathschema.json
118 lines (118 loc) · 4.55 KB
/
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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
{
"$schema": "http://json-schema.org/schema#",
"id":"https://raw.githubusercontent.com/pca006132/CommandReference/master/schema.json",
"type": "object",
"title": "Root tag",
"additionalProperties": false,
"properties": {
"common-words": {
"type": "array",
"items": {
"type": "array",
"items": [
{
"type": "string",
"title": "词",
"description": "那常用词以及其缩写"
},
{
"type": "string",
"title": "描述"
}
]
}
},
"threads": {
"type": "object",
"additionalProperties": false,
"patternProperties": {
"https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)": {
"type": "object",
"additionalProperties": false,
"properties": {
"title": {
"type": "string",
"title": "帖子标题"
},
"last-update": {
"type": "string",
"format": "^\\d{4}-\\d{2}-\\d{2}$"
},
"tags": {
"type": "array",
"items": {
"type": "string",
"enum": ["基础",
"进阶",
"计算",
"几何",
"算法",
"特技",
"NBT",
"游戏机制",
"黑科技",
"人生经验",
"游戏系统",
"命令介绍",
"原版模组",
"地图作品",
"概念验证",
"OOC生成",
"自定义生成器",
"其他生成器/资源",
"实例",
"过时",
"即将过时",
"英语"
]
},
"minItems": 1,
"maxItems": 5
},
"category": {
"type": "string",
"enum": [
"有趣问答",
"算法逻辑",
"系统制作技巧",
"NBT介绍",
"作品例子",
"游戏机制",
"教程索引",
"命令/格式教程",
"常用网站",
"生成器/资源",
"其他"
]
},
"versions": {
"type": "array",
"items": {
"type": "string",
"enum": [
"1.8",
"1.9",
"1.10",
"1.11",
"1.12",
"1.13"
]
}
},
"recommended": {
"type": "integer",
"minimum": 0,
"maximum": 2
}
},
"required": [
"title", "last-update", "tags", "category", "versions", "recommended"
]
}
}
}
},
"required": [
"common-words", "threads"
]
}