Skip to content

Commit d51a508

Browse files
committed
📝 完善schema
1 parent 60728d5 commit d51a508

File tree

1 file changed

+19
-7
lines changed

1 file changed

+19
-7
lines changed

‎docs/.vuepress/public/schema/uigf.json

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,8 @@
116116
},
117117
"time": {
118118
"type": "string",
119-
"description": "The local time in the timezone of the item being drawn"
119+
"description": "The local time in the timezone of the item being drawn.This MUST BE THE String typed value captured intact from the gacha record webpage WITHOUT ANY CONVERTION TO ANY DATE TYPES. Any conversion of such can cause potential timezone mistakes if the device time zone differs from the server time zone, unless special treatments are applied by individual app devs.",
120+
"pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
120121
},
121122
"name": {
122123
"type": "string",
@@ -132,7 +133,10 @@
132133
},
133134
"id": {
134135
"type": "string",
135-
"description": "The internal ID of the record, returned by MiHoYo API"
136+
"description": "The internal ID of the record, returned by MiHoYo API",
137+
"maxLength": 19,
138+
"minLength": 1,
139+
"pattern": "^[0-9]+$"
136140
}
137141
},
138142
"required": [
@@ -224,7 +228,8 @@
224228
},
225229
"time": {
226230
"type": "string",
227-
"description": "The local time in the timezone of the item being drawn"
231+
"description": "The local time in the timezone of the item being drawn.This MUST BE THE String typed value captured intact from the gacha record webpage WITHOUT ANY CONVERTION TO ANY DATE TYPES. Any conversion of such can cause potential timezone mistakes if the device time zone differs from the server time zone, unless special treatments are applied by individual app devs.",
232+
"pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
228233
},
229234
"name": {
230235
"type": "string",
@@ -240,7 +245,10 @@
240245
},
241246
"id": {
242247
"type": "string",
243-
"description": "The internal ID of the record, returned by MiHoYo API"
248+
"description": "The internal ID of the record, returned by MiHoYo API",
249+
"maxLength": 19,
250+
"minLength": 1,
251+
"pattern": "^[0-9]+$"
244252
}
245253
},
246254
"required": [
@@ -330,7 +338,8 @@
330338
},
331339
"time": {
332340
"type": "string",
333-
"description": "The local time in the timezone of the item being drawn"
341+
"description": "The local time in the timezone of the item being drawn.This MUST BE THE String typed value captured intact from the gacha record webpage WITHOUT ANY CONVERTION TO ANY DATE TYPES. Any conversion of such can cause potential timezone mistakes if the device time zone differs from the server time zone, unless special treatments are applied by individual app devs.",
342+
"pattern": "^\\d{4}-\\d{2}-\\d{2} \\d{2}:\\d{2}:\\d{2}$"
334343
},
335344
"name": {
336345
"type": "string",
@@ -346,7 +355,10 @@
346355
},
347356
"id": {
348357
"type": "string",
349-
"description": "The internal ID of the record, returned by MiHoYo API"
358+
"description": "The internal ID of the record, returned by MiHoYo API",
359+
"maxLength": 19,
360+
"minLength": 1,
361+
"pattern": "^[0-9]+$"
350362
}
351363
},
352364
"required": [
@@ -369,4 +381,4 @@
369381
"required": [
370382
"info"
371383
]
372-
}
384+
}

0 commit comments

Comments
 (0)