Skip to content

Commit

Permalink
Merge pull request #59 from UIGF-org/fix-58
Browse files Browse the repository at this point in the history
Update UIGF Json Schema
  • Loading branch information
Masterain98 authored Apr 4, 2024
2 parents cbbf920 + a960a79 commit 86b517a
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 44 deletions.
44 changes: 22 additions & 22 deletions docs/.vuepress/public/schema/uigf.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,41 +6,41 @@
"properties": {
"uid": {
"type": "string",
"title": "导出记录的 UID"
"title": "UID of the export record"
},
"lang": {
"type": "string",
"title": "语言 languagecode2-country/regioncode2"
"title": "language in the format of languagecode2-country/regioncode2"
},
"export_timestamp": {
"type": "number",
"title": "导出 UNIX 时间戳(秒)"
"title": "Export UNIX timestamp (accurate to the second)"
},
"export_time": {
"type": "string",
"title": "导出时间",
"title": "Export time",
"description": "yyyy-MM-dd HH:mm:ss"
},
"export_app": {
"type": "string",
"title": "导出 App 名称"
"title": "Name of the export application"
},
"export_app_version": {
"type": "string",
"title": "导出 App 版本"
"title": "Version of the export application"
},
"uigf_version": {
"type": "string",
"title": "UIGF 版本号",
"title": "UIGF version; follow the regular expression pattern",
"pattern": "v\\d+\\.\\d+"
},
"region_time_zone": {
"type": "number",
"title": "区域时区偏移"
"title": "Region timezone offset"
}
},
"required": ["uid", "uigf_version"],
"title": "UIGF 导出信息"
"title": "UIGF Export Information"
},
"list": {
"type": "array",
Expand All @@ -49,48 +49,48 @@
"properties": {
"uigf_gacha_type": {
"type": "string",
"title": "UIGF 卡池类型",
"description": "用于区分卡池类型不同,但卡池保底计算相同的物品"
"title": "UIGF gacha type",
"description": "Used to differentiate different gacha types with the same pity calculation for items"
},
"gacha_type": {
"type": "string",
"title": "卡池类型"
"title": "Gacha type"
},
"item_id": {
"type": "string",
"title": "物品的内部 ID"
"title": "Internal ID of the item"
},
"count": {
"type": "string",
"title": "个数,一般为1"
"title": "Count, usually 1"
},
"time": {
"type": "string",
"title": "获取物品的时间"
"title": "Time when the item was obtained"
},
"name": {
"type": "string",
"title": "物品名称"
"title": "Item name"
},
"item_type": {
"type": "string",
"title": "物品类型"
"title": "Item type"
},
"rank_type": {
"type": "string",
"title": "物品等级"
"title": "Item rank"
},
"id": {
"type": "string",
"title": "记录内部 ID"
"title": "Internal ID of the record"
}
},
"required": ["uigf_gacha_type", "gacha_type", "id", "item_id", "time"],
"title": "UIGF 物品"
"title": "UIGF Item"
},
"title": "物品列表"
"title": "Item List"
}
},
"required": ["info", "list"],
"title": "UIGF 根对象"
"title": "UIGF Root Object"
}
44 changes: 22 additions & 22 deletions docs/en/standards/UIGF.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,41 +96,41 @@ Item's in-game ID, refer to [UIGF API](../API.md) to get this data
"properties": {
"uid": {
"type": "string",
"title": "导出记录的 UID"
"title": "UID of the export record"
},
"lang": {
"type": "string",
"title": "语言 languagecode2-country/regioncode2"
"title": "language in the format of languagecode2-country/regioncode2"
},
"export_timestamp": {
"type": "number",
"title": "导出 UNIX 时间戳(秒)"
"title": "Export UNIX timestamp (accurate to the second)"
},
"export_time": {
"type": "string",
"title": "导出时间",
"title": "Export time",
"description": "yyyy-MM-dd HH:mm:ss"
},
"export_app": {
"type": "string",
"title": "导出 App 名称"
"title": "Name of the export application"
},
"export_app_version": {
"type": "string",
"title": "导出 App 版本"
"title": "Version of the export application"
},
"uigf_version": {
"type": "string",
"title": "UIGF 版本号",
"title": "UIGF version; follow the regular expression pattern",
"pattern": "v\\d+\\.\\d+"
},
"region_time_zone": {
"type": "number",
"title": "区域时区偏移"
"title": "Region timezone offset"
}
},
"required": ["uid", "uigf_version"],
"title": "UIGF 导出信息"
"title": "UIGF Export Information"
},
"list": {
"type": "array",
Expand All @@ -139,49 +139,49 @@ Item's in-game ID, refer to [UIGF API](../API.md) to get this data
"properties": {
"uigf_gacha_type": {
"type": "string",
"title": "UIGF 卡池类型",
"description": "用于区分卡池类型不同,但卡池保底计算相同的物品"
"title": "UIGF gacha type",
"description": "Used to differentiate different gacha types with the same pity calculation for items"
},
"gacha_type": {
"type": "string",
"title": "卡池类型"
"title": "Gacha type"
},
"item_id": {
"type": "string",
"title": "物品的内部 ID"
"title": "Internal ID of the item"
},
"count": {
"type": "string",
"title": "个数,一般为1"
"title": "Count, usually 1"
},
"time": {
"type": "string",
"title": "获取物品的时间"
"title": "Time when the item was obtained"
},
"name": {
"type": "string",
"title": "物品名称"
"title": "Item name"
},
"item_type": {
"type": "string",
"title": "物品类型"
"title": "Item type"
},
"rank_type": {
"type": "string",
"title": "物品等级"
"title": "Item rank"
},
"id": {
"type": "string",
"title": "记录内部 ID"
"title": "Internal ID of the record"
}
},
"required": ["uigf_gacha_type", "gacha_type", "id", "item_id", "time"],
"title": "UIGF 物品"
"title": "UIGF Item"
},
"title": "物品列表"
"title": "Item List"
}
},
"required": ["info", "list"],
"title": "UIGF 根对象"
"title": "UIGF Root Object"
}
```

0 comments on commit 86b517a

Please sign in to comment.