Skip to content

Add optional judgement counts to score responses - #1

Merged
cubevlmu merged 1 commit into
mainfrom
dvj/score-judgement-counts
Sep 30, 2026
Merged

cubevlmu merged 1 commit into
mainfrom
dvj/score-judgement-counts

Conversation

@Denverjin

@Denverjin Denverjin commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Add nullable perfectStar, perfect, great, good, bad, and miss fields to PlatformScoreEntry for the existing account /scores API. Null represents missing judgement data or a best-score snapshot. This is an additive JSON contract change.

Validation: SiriusData.sln Release build passed for .NET 8 and .NET 10; the MasterMemory tool passed a byte-exact round-trip on a small native fixture. The matching SiriusServer branch passed its Release build and all 48 tests with PostgreSQL integration enabled.

Companion implementation: SiriusServer #13. Merge/build this shared contract before the server change.

中文说明

为 PlatformScoreEntry 增加可空的 perfectStar、perfect、great、good、bad、miss 字段,供原有账号 /scores 接口返回判定数量。null 表示没有可用判定数据,或该条记录属于最佳成绩快照。这是向 JSON 契约追加字段的兼容性修改。

验证:SiriusData.sln 的 .NET 8、.NET 10 Release 构建通过;MasterMemory 工具对小型原生测试数据完成了字节一致的往返校验。对应 SiriusServer 分支的 Release 构建及启用 PostgreSQL 集成测试后的 48 项测试均通过。

配套实现:SiriusServer #13。请先合并并构建本共享协议修改,再合并服务端修改。

Co-authored-by: Codex <codex@openai.com>
@cubevlmu
cubevlmu merged commit 818f094 into main Sep 30, 2026
1 check passed
@cubevlmu
cubevlmu deleted the dvj/score-judgement-counts branch September 30, 2026 12:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants