-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathschema.json
137 lines (137 loc) · 5.14 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
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
{
"$schema": "http://json-schema.org/schema#",
"id":"https://raw.githubusercontent.com/pca006132/CommandReference/master/schema.json",
"type": "object",
"title": "Root tag",
"additionalProperties": false,
"properties": {
"adv": {
"type": "object",
"additionalProperties": false,
"patternProperties": {
"https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)": {
"type": "string",
"pattern": "https?:\\/\\/(www\\.)?[-a-zA-Z0-9@:%._\\+~#=]{2,256}\\.[a-z]{2,6}\\b([-a-zA-Z0-9@:%_\\+.~#?&//=]*)"
}
}
},
"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生成",
"自定义生成器",
"其他生成器/资源",
"实例",
"部分过时",
"英语"
]
},
"maxItems": 8
},
"category": {
"type": "string",
"enum": [
"有趣问答",
"算法逻辑",
"系统制作技巧",
"NBT介绍",
"作品例子",
"游戏/命令机制",
"教程索引",
"命令/格式教程",
"常用网站",
"生成器/资源",
"其他"
]
},
"version-min": {
"type": "integer",
"minimum": 8,
"maximum": 13
},
"version-max": {
"type": "integer",
"minimum": 8,
"maximum": 13
},
"recommended": {
"type": "integer",
"minimum": 0,
"maximum": 3
},
"authors": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": [
"title", "tags", "category", "recommended"
]
}
}
},
"tags": {
"type": "array",
"items": {
"type": "string"
}
},
"version": {
"type": "object",
"properties": {
"min": {
"type": "integer"
},
"max": {
"type": "integer"
},
"snapshot": {
"type": "boolean"
}
},
"required": [
"min", "max"
],
"additionalProperties": false
}
},
"required": [
"threads", "tags", "version", "adv"
]
}