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 1.501s
ok git.yuntuo.hk/k2safe/go-omni/app 1.947s
ok git.yuntuo.hk/k2safe/go-omni/audit 1.275s
ok git.yuntuo.hk/k2safe/go-omni/auth 1.313s
ok git.yuntuo.hk/k2safe/go-omni/cache 1.430s
ok git.yuntuo.hk/k2safe/go-omni/cache/redis 1.452s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni 2.065s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni/apigen 30.496s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni/scaffold 40.140s
ok git.yuntuo.hk/k2safe/go-omni/config 1.310s
ok git.yuntuo.hk/k2safe/go-omni/contract 1.321s
ok git.yuntuo.hk/k2safe/go-omni/database 1.371s
ok git.yuntuo.hk/k2safe/go-omni/database/migrate 1.740s
? 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.332s
ok git.yuntuo.hk/k2safe/go-omni/examples/platform 1.415s
ok git.yuntuo.hk/k2safe/go-omni/examples/reference 1.482s
? 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.346s
? git.yuntuo.hk/k2safe/go-omni/examples/reference/service [no test files]
ok git.yuntuo.hk/k2safe/go-omni/health 1.320s
ok git.yuntuo.hk/k2safe/go-omni/httpc 1.466s
ok git.yuntuo.hk/k2safe/go-omni/httpx 1.312s
ok git.yuntuo.hk/k2safe/go-omni/internal/perfcheck 1.357s
? 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.573s
ok git.yuntuo.hk/k2safe/go-omni/metrics 1.305s
ok git.yuntuo.hk/k2safe/go-omni/middleware 1.418s
ok git.yuntuo.hk/k2safe/go-omni/middleware/redis 1.388s
ok git.yuntuo.hk/k2safe/go-omni/openapi 1.303s
ok git.yuntuo.hk/k2safe/go-omni/pagination 1.286s
? git.yuntuo.hk/k2safe/go-omni/queue [no test files]
ok git.yuntuo.hk/k2safe/go-omni/queue/redis 1.285s
ok git.yuntuo.hk/k2safe/go-omni/resilience 1.287s
ok git.yuntuo.hk/k2safe/go-omni/response 1.321s
ok git.yuntuo.hk/k2safe/go-omni/storage 1.331s
ok git.yuntuo.hk/k2safe/go-omni/storage/local 1.325s
ok git.yuntuo.hk/k2safe/go-omni/storage/oss 1.440s
ok git.yuntuo.hk/k2safe/go-omni/storage/s3 10.162s
? git.yuntuo.hk/k2safe/go-omni/storage/storagetest [no test files]
ok git.yuntuo.hk/k2safe/go-omni/task 1.364s
ok git.yuntuo.hk/k2safe/go-omni/telemetry 1.320s
ok git.yuntuo.hk/k2safe/go-omni/transport 1.314s
ok git.yuntuo.hk/k2safe/go-omni/transport/http2 12.547s
? git.yuntuo.hk/k2safe/go-omni/transport/internal/routing [no test files]
ok git.yuntuo.hk/k2safe/go-omni/transport/native 2.016s
ok git.yuntuo.hk/k2safe/go-omni/transport/nethttp 1.305s
? git.yuntuo.hk/k2safe/go-omni/transport/transporttest [no test files]
? git.yuntuo.hk/k2safe/go-omni/validate [no test files]