test(api): 固化 Rust-Go RPC 契约

This commit is contained in:
2026-07-31 18:20:37 +08:00
parent 1e466d3374
commit df361cff28
17 changed files with 284 additions and 9 deletions
+15
View File
@@ -0,0 +1,15 @@
# Rust contract fixtures
本目录保存 Go `bat-api` 对 Rust `bat.sock` / snapshot JSON 的跨语言
contract fixture。JSON 由 Rust 代码路径产出后归一化,只替换本机路径、版本号、
时间戳和 release URL token,不改字段名、层级、null 语义或数字类型。
覆盖范围:
- `catalog.status` 可用与不可用响应。
- `resource.manifest` 第一页分页响应。
- 对应 release 的 `official-sync-snapshot.json`
- `launcher_metadata``game_main_config_bootstrap` 的 Go mirror 解码。
这些 fixture 只用于 schema / mirror 回归,不代表真实资源版本,也不替代 live
daemon socket 或完整发布切换验证。