DGP-Studio / Snap.Hutao

实用的开源多功能原神工具箱 🧰 / Multifunctional Open-source Genshin Impact Toolkit 🧰
https://hut.ao
MIT License
3.9k stars 185 forks source link

[Bug]: 胡桃导出的 UIGFv4 不符合 UIGFv4 规范 #1868

Closed guyutongxue closed 3 weeks ago

guyutongxue commented 1 month ago

检查清单

Windows 版本

22635.4000

Snap Hutao 版本

1.10.7.0

设备 ID

No response

问题分类

祈愿记录

发生了什么?

胡桃生成的 /hk4e/0/list/0/item_idnumber 类型:

https://github.com/DGP-Studio/Snap.Hutao/blob/a3be885c5ec2f3dc297680c102bf1d91f8909d19/src/Snap.Hutao/Snap.Hutao/Model/InterChange/GachaLog/Hk4eItem.cs#L21-L22

而 UIGFv4 要求此项为 string 类型:

{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "type": "object",
    "properties": {
        "hk4e": {
            "type": "array",
            "items": {
                "type": "object",
                "properties": {
                    "list": {
                        "type": "array",
                        "items": {
                            "type": "object",
                            "properties": {
                                "item_id": {
                                    "type": "string",
                                    "description": "物品的内部 ID"
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}

https://uigf.org/zh/standards/uigf.html#json-schema

你期望发生的行为?

修改 UIGF 规范或者修改胡桃实现,使得导出数据能通过 UIGFv4 校验。

最后一步

BTMuli commented 1 month ago

该问题为已知问题,目前胡桃已经不在 UIGFv4 支持列表 当中

Lightczx commented 1 month ago

fixed by https://github.com/DGP-Studio/Snap.Hutao/commit/22b33fcfb6d5ab1fd0360f7d921749c34165aa30

dgp-bot[bot] commented 3 weeks ago

包含解决该问题的程序版本 1.11.0 已发布。