-
Notifications
You must be signed in to change notification settings - Fork 53
Expand file tree
/
Copy pathconfig.schema.json
More file actions
74 lines (74 loc) · 2.26 KB
/
config.schema.json
File metadata and controls
74 lines (74 loc) · 2.26 KB
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
{
"$schema": "http://json-schema.org/draft-07/schema#",
"title": "MusicFree Theme Config",
"description": "MusicFree 主题包配置文件 Schema(v2 语义化 Token 版本)",
"type": "object",
"required": ["name"],
"properties": {
"name": {
"type": "string",
"minLength": 1,
"maxLength": 50,
"description": "主题显示名称"
},
"author": {
"type": "string",
"minLength": 1,
"maxLength": 30,
"description": "作者名称"
},
"authorUrl": {
"type": "string",
"format": "uri",
"description": "作者主页链接(可选,如 GitHub 主页、个人网站等)"
},
"preview": {
"type": "string",
"minLength": 1,
"description": "预览图路径(@/imgs/文件名)或 CSS 颜色值(#xxx)"
},
"blurHash": {
"type": "string",
"description": "BlurHash 编码字符串,用于 iframe 主题加载占位"
},
"thumb": {
"type": "string",
"description": "缩略图路径(@/imgs/thumb.png)"
},
"srcUrl": {
"type": "string",
"format": "uri",
"description": "主题更新源地址"
},
"description": {
"type": "string",
"minLength": 1,
"maxLength": 200,
"description": "主题描述"
},
"version": {
"type": "string",
"description": "版本号"
},
"tags": {
"type": "array",
"items": {
"type": "string"
},
"minItems": 1,
"maxItems": 5,
"description": "标签数组(需从 tags.json 预定义列表中选取)"
},
"iframe": {
"type": "object",
"properties": {
"app": {
"type": "string",
"description": "动态主题 HTML 入口文件路径(@/iframes/*.html)或远程 URL"
}
},
"required": ["app"],
"description": "动态主题的 iframe 配置"
}
}
}