Skip to content

Commit ec27299

Browse files
committed
Update pathing.schema.json
1 parent 8e9622f commit ec27299

File tree

1 file changed

+87
-78
lines changed

1 file changed

+87
-78
lines changed

schema/pathing.schema.json

Lines changed: 87 additions & 78 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,82 @@
11
{
22
"$schema": "http://json-schema.org/draft-07/schema#",
33
"definitions": {
4+
"info": {
5+
"type": "object",
6+
"properties": {
7+
"name": {
8+
"type": "string",
9+
"description": "名称"
10+
},
11+
"description": {
12+
"type": "string",
13+
"description": "描述"
14+
},
15+
"author": {
16+
"type": "string",
17+
"description": "作者"
18+
},
19+
"version": {
20+
"type": "string",
21+
"description": "版本号"
22+
},
23+
"bgi_version": {
24+
"type": "string",
25+
"description": "BetterGI 版本号"
26+
},
27+
"type": {
28+
"anyOf": [
29+
{
30+
"type": "string",
31+
"enum": [
32+
"collect",
33+
"mining",
34+
"farming"
35+
]
36+
},
37+
{
38+
"type": "string"
39+
}
40+
],
41+
"description": "路径类型"
42+
},
43+
"map_name": {
44+
"anyOf": [
45+
{
46+
"type": "string",
47+
"enum": [
48+
"Teyvat",
49+
"TheChasm",
50+
"Enkanomiya",
51+
"SeaOfBygoneEras",
52+
"AncientSacredMountain"
53+
]
54+
},
55+
{
56+
"type": "string"
57+
}
58+
],
59+
"description": "地图名称",
60+
"default": "Teyvat"
61+
},
62+
"last_modified_time": {
63+
"type": "number",
64+
"description": "最后修改时间"
65+
},
66+
"tags": {
67+
"type": "array",
68+
"items": {
69+
"type": "string"
70+
},
71+
"description": "标签",
72+
"default": []
73+
}
74+
},
75+
"required": [
76+
"name",
77+
"type"
78+
]
79+
},
480
"misidentification": {
581
"type": "object",
682
"properties": {
@@ -49,7 +125,7 @@
49125
},
50126
"description": "异常识别处理"
51127
},
52-
"point_ext_params": {
128+
"pointExtParams": {
53129
"type": "object",
54130
"properties": {
55131
"misidentification": {
@@ -94,7 +170,7 @@
94170
"description": "Y 坐标"
95171
},
96172
"point_ext_params": {
97-
"$ref": "#/definitions/point_ext_params"
173+
"$ref": "#/definitions/pointExtParams"
98174
},
99175
"type": {
100176
"anyOf": [
@@ -180,87 +256,20 @@
180256
"type": "object",
181257
"properties": {
182258
"info": {
183-
"type": "object",
184-
"properties": {
185-
"name": {
186-
"type": "string",
187-
"description": "名称"
188-
},
189-
"description": {
190-
"type": "string",
191-
"description": "描述"
192-
},
193-
"author": {
194-
"type": "string",
195-
"description": "作者"
196-
},
197-
"version": {
198-
"type": "string",
199-
"description": "版本号"
200-
},
201-
"bgi_version": {
202-
"type": "string",
203-
"description": "BetterGI 版本号"
204-
},
205-
"type": {
206-
"anyOf": [
207-
{
208-
"type": "string",
209-
"enum": [
210-
"collect",
211-
"mining",
212-
"farming"
213-
]
214-
},
215-
{
216-
"type": "string"
217-
}
218-
],
219-
"description": "路径类型"
220-
},
221-
"map_name": {
222-
"anyOf": [
223-
{
224-
"type": "string",
225-
"enum": [
226-
"Teyvat",
227-
"TheChasm",
228-
"Enkanomiya",
229-
"SeaOfBygoneEras",
230-
"AncientSacredMountain"
231-
]
232-
},
233-
{
234-
"type": "string"
235-
}
236-
],
237-
"description": "地图名称",
238-
"default": "Teyvat"
239-
},
240-
"last_modified_time": {
241-
"type": "number",
242-
"description": "最后修改时间"
243-
},
244-
"tags": {
245-
"type": "array",
246-
"items": {
247-
"type": "string"
248-
},
249-
"description": "标签",
250-
"default": []
251-
}
252-
},
253-
"required": [
254-
"name",
255-
"type"
256-
]
259+
"$ref": "#/definitions/info",
260+
"description": "路径任务信息"
257261
},
258262
"positions": {
259263
"type": "array",
260264
"items": {
261265
"$ref": "#/definitions/position"
262266
},
263-
"description": "路径点"
267+
"description": "路径点",
268+
"default": []
264269
}
265-
}
270+
},
271+
"required": [
272+
"info",
273+
"positions"
274+
]
266275
}

0 commit comments

Comments
 (0)