feat: release configurable API response contracts

Define reusable response bodies in .api with typed code mappings, per-route overrides and matching OpenAPI schemas. Add application and callback encoders, early response policy selection, and isolated remote-consumer release verification.

Release v0.8.0-preview after full race, vet, build and local MySQL workflow acceptance.
This commit is contained in:
2026-09-23 20:42:38 +08:00
parent bef7ea2641
commit 7670b222ac
47 changed files with 2689 additions and 120 deletions

View File

@@ -0,0 +1,55 @@
Command: GO_OMNI_SCAFFOLD_INTEGRATION=1 go test -race -p=1 -count=1 -timeout=300s ./...
Exit status: 0
ok git.yuntuo.hk/k2safe/go-omni 2.660s
ok git.yuntuo.hk/k2safe/go-omni/app 2.005s
ok git.yuntuo.hk/k2safe/go-omni/audit 1.338s
ok git.yuntuo.hk/k2safe/go-omni/auth 1.346s
ok git.yuntuo.hk/k2safe/go-omni/cache 1.399s
ok git.yuntuo.hk/k2safe/go-omni/cache/redis 1.304s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni 1.960s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni/apigen 30.753s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni/scaffold 37.406s
ok git.yuntuo.hk/k2safe/go-omni/config 1.334s
ok git.yuntuo.hk/k2safe/go-omni/contract 1.341s
ok git.yuntuo.hk/k2safe/go-omni/database 1.298s
ok git.yuntuo.hk/k2safe/go-omni/database/migrate 1.336s
? git.yuntuo.hk/k2safe/go-omni/errors [no test files]
? git.yuntuo.hk/k2safe/go-omni/examples/basic [no test files]
ok git.yuntuo.hk/k2safe/go-omni/examples/modules 1.356s
ok git.yuntuo.hk/k2safe/go-omni/examples/platform 1.396s
ok git.yuntuo.hk/k2safe/go-omni/examples/reference 1.423s
? git.yuntuo.hk/k2safe/go-omni/examples/reference/handler [no test files]
? git.yuntuo.hk/k2safe/go-omni/examples/reference/model [no test files]
ok git.yuntuo.hk/k2safe/go-omni/examples/reference/repository 1.305s
? git.yuntuo.hk/k2safe/go-omni/examples/reference/service [no test files]
ok git.yuntuo.hk/k2safe/go-omni/health 1.338s
ok git.yuntuo.hk/k2safe/go-omni/httpc 1.388s
ok git.yuntuo.hk/k2safe/go-omni/httpx 1.330s
ok git.yuntuo.hk/k2safe/go-omni/internal/perfcheck 1.407s
? git.yuntuo.hk/k2safe/go-omni/internal/storagefixture [no test files]
? git.yuntuo.hk/k2safe/go-omni/internal/testutil [no test files]
ok git.yuntuo.hk/k2safe/go-omni/logx 1.473s
ok git.yuntuo.hk/k2safe/go-omni/metrics 1.324s
ok git.yuntuo.hk/k2safe/go-omni/middleware 1.392s
ok git.yuntuo.hk/k2safe/go-omni/middleware/redis 1.319s
ok git.yuntuo.hk/k2safe/go-omni/openapi 1.333s
ok git.yuntuo.hk/k2safe/go-omni/pagination 1.296s
? git.yuntuo.hk/k2safe/go-omni/queue [no test files]
ok git.yuntuo.hk/k2safe/go-omni/queue/redis 1.713s
ok git.yuntuo.hk/k2safe/go-omni/resilience 1.530s
ok git.yuntuo.hk/k2safe/go-omni/response 1.324s
ok git.yuntuo.hk/k2safe/go-omni/storage 1.336s
ok git.yuntuo.hk/k2safe/go-omni/storage/local 1.311s
ok git.yuntuo.hk/k2safe/go-omni/storage/oss 1.466s
ok git.yuntuo.hk/k2safe/go-omni/storage/s3 10.741s
? git.yuntuo.hk/k2safe/go-omni/storage/storagetest [no test files]
ok git.yuntuo.hk/k2safe/go-omni/task 1.365s
ok git.yuntuo.hk/k2safe/go-omni/telemetry 1.328s
ok git.yuntuo.hk/k2safe/go-omni/transport 1.347s
ok git.yuntuo.hk/k2safe/go-omni/transport/http2 12.542s
? git.yuntuo.hk/k2safe/go-omni/transport/internal/routing [no test files]
ok git.yuntuo.hk/k2safe/go-omni/transport/native 2.099s
ok git.yuntuo.hk/k2safe/go-omni/transport/nethttp 1.331s
? git.yuntuo.hk/k2safe/go-omni/transport/transporttest [no test files]
? git.yuntuo.hk/k2safe/go-omni/validate [no test files]