feat(http): 增加 OpenAPI 契约生成能力
Verify / verify (push) Canceled after 0s

从已注册 Controller 的 Form、返回类型及字段声明生成请求、
响应和校验约束,补充显式安全方案与操作级覆盖。
复用 kin-openapi 原生类型与校验,保留合并绑定语义,
为原生路由和无法等价映射的声明提供补充入口。

同步接入指南、迁移边界和可独立运行的契约导出示例。
验证:make verify、make race-check 及实际示例导出通过。
This commit is contained in:
zhangdeman committed 2026-11-26 21:10:02 -08:00
1 parent e901a1e964
commit b4a21f53ac
13 files changed
+1304 -8

No files matched your search

+10
View File
@@ -47,6 +47,16 @@ const (
codeHealthConfig = 900429
codeReadinessCheck = 900430
codeRequestCancelled = 900431
codeOpenAPIOptions = 900432
codeOpenAPISchema = 900433
codeOpenAPIPath = 900434
codeOpenAPICustomize = 900435
codeOpenAPIValidate = 900436
codeOpenAPICopy = 900437
codeOpenAPISecurity = 900438
codeOpenAPIMethod = 900439
codeOpenAPIDuplicate = 900440
codeOpenAPIResponse = 900441
)
// PublicError 是业务显式允许公开的错误,不包含原始原因文本。
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.