-
Notifications
You must be signed in to change notification settings - Fork 0
/
plugin-info.json
141 lines (141 loc) · 4.54 KB
/
plugin-info.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
138
139
140
141
{
"$schema": "http://json-schema.org/draft-07/schema#",
"$id": "https://sereincommunity.github.io/json-schema/v2/plugin-info.json",
"type": "object",
"additionalProperties": false,
"required": [
"name",
"id",
"tags",
"targetingSerein",
"isModule",
"authors",
"type"
],
"properties": {
"name": {
"type": "string",
"title": "插件名称",
"description": "方便用户区分,无长度和字符限制"
},
"id": {
"type": "string",
"pattern": "^[a-zA-Z][a-zA-Z0-9\\-]{4,25}$",
"title": "插件的唯一标识符",
"description": "用于区分插件,仅能由长度为4~25的英文字符、数字和短横线组成,且应以英文字母开头"
},
"tags": {
"type": "array",
"minItems": 1,
"items": {
"enum": [
"entertainment",
"development",
"tool",
"information",
"management",
"api"
]
},
"uniqueItems": true,
"title": "标签",
"description": "用于归类插件,方便用户搜索"
},
"description": {
"type": "string",
"maxLength": 50,
"title": "插件介绍",
"description": "简单描述功能,方便用户了解插件功能"
},
"targetingSerein": {
"type": "array",
"uniqueItems": true,
"additionalItems": false,
"items": {
"enum": [
"1.3.0",
"1.3.1",
"1.3.2",
"1.3.3",
"1.3.4",
"1.3.5",
"2.0"
]
},
"title": "适用的Serein的版本",
"description": "一个由版本号组成的枚举值数组"
},
"isModule": {
"type": "boolean",
"default": false,
"title": "是否为模块插件",
"description": "若为`true`则此插件不会出现在Serein内置的插件市场中"
},
"dependencies": {
"title": "前置依赖",
"description": "所有依赖插件都会被一同安装",
"type": "array",
"minItems": 0,
"items": {
"type": "object",
"properties": {
"id": {
"type": "string",
"title": "插件的唯一标识符",
"pattern": "^[\\w-]{5,25}$"
},
"version": {
"type": "array",
"title": "版本",
"description": "数组为空表示不指定版本;若有多个元素则有且仅有这些版本符合要求",
"additionalItems": false,
"items": {
"type": "string",
"pattern": "^\\d{1,7}(\\.\\d{1,7}){1,3}$"
}
}
},
"additionalProperties": false,
"required": [
"id",
"version"
]
}
},
"authors": {
"type": "array",
"additionalItems": false,
"items": [
{
"type": "object",
"additionalProperties": false,
"required": [
"name"
],
"properties": {
"name": {
"type": "string",
"title": "名称",
"description": "用户名或组织名称"
},
"description": {
"type": "string",
"title": "描述",
"description": "作者的一句话描述"
}
}
}
],
"minItems": 1,
"title": "作者",
"description": "可以填写多个插件作者"
},
"type": {
"type": "string",
"enum": [
"js",
"net"
]
}
}
}