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,11 @@
Command: GO_OMNI_SCAFFOLD_INTEGRATION=1 go test -race -p=2 -count=1 . ./response ./config ./httpx ./openapi ./cmd/go-omni/...
Exit status: 0
ok git.yuntuo.hk/k2safe/go-omni 1.535s
ok git.yuntuo.hk/k2safe/go-omni/response 1.607s
ok git.yuntuo.hk/k2safe/go-omni/config 1.248s
ok git.yuntuo.hk/k2safe/go-omni/httpx 1.330s
ok git.yuntuo.hk/k2safe/go-omni/openapi 1.236s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni 1.895s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni/apigen 31.378s
ok git.yuntuo.hk/k2safe/go-omni/cmd/go-omni/scaffold 37.686s