Repository navigation
Release v0.20.0
Content freeze for the 0.20 release window (parent #566). Package identity + dated
section filled by packaging ticket (#573). GitHub Release body is extracted from this
section by.github/workflows/release.yml— this is the source of truth for 0.20 notes.
Consumer upgrade path:docs/migration-guide.md→ OpenLark 0.20.
Changed (Breaking)
- docs:
BaikeApiV1从LingoApiV1别名拆为独立 catalog enum(#568):
历史上BaikeApiV1是pub use LingoApiV1 as BaikeApiV1,variant 集合与 lingo 完全一致,
且路径前缀错误落在/open-apis/lingo/v1/。现改为独立 enum(common/api_endpoints/baike.rs),
仅覆盖 baike CSV 中的 13 个端点,路径前缀为/open-apis/baike/v1/。-
影响:对
BaikeApiV1做 exhaustivematch的代码会因 variant 集合变小而编译失败;
依赖「baike 与 lingo 同构」或 lingo-only variant 的调用需改用LingoApiV1。 -
迁移:
// before — BaikeApiV1 是 LingoApiV1 的别名(含 lingo-only variants / 错误 lingo 路径) use openlark_docs::common::api_endpoints::BaikeApiV1; let _ = BaikeApiV1::EntityDelete("id".into()); // lingo-only,现已不在 BaikeApiV1 // after — baike 用独立 catalog;lingo 专用 variant 改走 LingoApiV1 use openlark_docs::common::api_endpoints::{BaikeApiV1, LingoApiV1}; let _ = BaikeApiV1::DraftUpdate("draft_id".into()); // /open-apis/baike/v1/drafts/{id} let _ = LingoApiV1::EntityDelete("id".into()); // /open-apis/lingo/v1/entities/{id}
-
Added
-
workflow:高频
create_taskhelper(#572):
新增WorkflowTaskCreate输入类型与WorkflowService::create_task,在既有
typedCreateTaskRequest之上固化常见创建字段(标题/描述/截止/优先级/执行者/清单等),
返回业务CreateTaskResponse。不新增 feature、不引入 registry 或双客户端栈。
覆盖:builder unit test、wiremock e2e、helper snapshot、workflow_api_example/
communication_workflows示例,以及 helper 边界文档。 -
ci(api-contracts):docs 域 field strict gate(#569,0.20 首个 contract 域扩展):
在 attendance field-monitor → strict(#534/#540)之后,将 live field 校验扩展到
openlark-docs(ccm/base/baike/minutes,~214 API)并以--strict fields接入 CI
api-contractsjob。落地前 live 全量基线为 0 ERROR(仅 WARN:
W_*_FIELDS_UNRESOLVED与 1 条W_REQUIRED_REQUEST_FIELD_OPTIONAL,不阻塞 gate);
无公开 API 字段 breaking。配套:tools/tests/test_validate_api_contracts_ci_gates.py
钉死 CI 域清单;docs/api-contract-validation.md§1.5 记录域扩展表。 -
coverage:path denoise + classified missing reports(#567):
tools/validate_apis.py对 missing 报告区分 true gap / path noise / extra files;
稳定发布 hard gate 阈值不降。文档见docs/typed-api-coverage.md。
Changed
-
coverage:seven platform P1 reads clear-or-disprove(#570):
0.19 残留的 7 个 platform/tenant/trust-party P1「缺口」经 denoise 后证实为 path noise
(实现已存在,报告路径公式误报)。无公开 API 变更;P1 true-gap 计数归零。 -
coverage:selective P2 path-noise reclassification(#571):
helpdesk / mail / hr-OKR 若干 P2 路径噪声重分类;不追求 platform 100%。
真缺口保留在 classified missing 报告中,hard gate 阈值不变。
Crate 级质量状态
质量状态维度:
- typed coverage:来自
reports/api_validation/summary.json的 typed API 覆盖率 - contract tests:crate 内存在 request/response contract test
- snapshot tests:crate 内存在 helper/output snapshot test
| crate | typed coverage | 剩余缺口 | contract tests | snapshot tests | 备注 |
|---|---|---|---|---|---|
openlark |
n/a | n/a | no | no | 非 typed API 覆盖统计对象 |
openlark-core |
n/a | n/a | yes | no | 非 typed API 覆盖统计对象 |
openlark-client |
n/a | n/a | yes | no | 非 typed API 覆盖统计对象 |
openlark-capability-unique |
n/a | n/a | no | no | 非 typed API 覆盖统计对象 |
openlark-auth |
100.0% | 0 | no | no | 无 typed API 缺口 |
openlark-security |
100.0% | 0 | no | no | 无 typed API 缺口 |
openlark-communication |
100.0% | 0 | yes | yes | 无 typed API 缺口 |
openlark-cardkit |
100.0% | 0 | no | no | 无 typed API 缺口 |
openlark-webhook |
n/a | n/a | no | no | 非 typed API 覆盖统计对象 |
openlark-docs |
100.0% | 0 | yes | yes | 无 typed API 缺口 |
openlark-hr |
100.0% | 0 | yes | no | 无 typed API 缺口 |
openlark-ai |
100.0% | 0 | no | no | 无 typed API 缺口 |
openlark-workflow |
100.0% | 0 | yes | yes | 无 typed API 缺口 |
openlark-application |
100.0% | 0 | yes | no | 无 typed API 缺口 |
openlark-platform |
100.0% | 0 | yes | no | 无 typed API 缺口 |
openlark-meeting |
100.0% | 0 | yes | no | 无 typed API 缺口 |
openlark-helpdesk |
100.0% | 0 | yes | no | 无 typed API 缺口 |
openlark-mail |
100.0% | 0 | yes | no | 无 typed API 缺口 |
openlark-bot |
100.0% | 0 | no | no | 无 typed API 缺口 |
openlark-analytics |
100.0% | 0 | yes | no | 无 typed API 缺口 |
openlark-user |
100.0% | 0 | yes | no | 无 typed API 缺口 |