go-api · git:20261112.8ff8273 · 2026-11-12 · sha256 169fe00c40eec5c4
go-api git:20261112.8ff8273A
Immutable. This exact content never changes and is served at /api/v1/blob/169fe00c40eec5c4.
--- applyTo: "**/*.go,**/go.mod,**/go.sum,apps/api/api/openapi/**/*.yaml" --- # Go And API Review Instructions Canonical scoped sources for this glob: [`apps/api/internal/AGENTS.md`](../../apps/api/internal/AGENTS.md), [`apps/api/internal/storage/AGENTS.md`](../../apps/api/internal/storage/AGENTS.md) and [`apps/api/api/openapi/AGENTS.md`](../../apps/api/api/openapi/AGENTS.md). Review heuristics on top: - Never ask an author to hand-edit `apps/api/internal/api/generated/**`; the fix goes into `apps/api/api/openapi/**` and `turbo run generate --filter=@zitadel/server`. CI checks drift with `@zitadel/server#check-generate` and lints the spec, wire casing included, in the server's `lint`. Wrong casing fails silently at runtime, so treat both gates as part of the contract. - Error responses follow the stable code catalog ([ADR 030](../../docs/adrs/030-error-model-mapping-and-reporting.md), [`error-details-producers.md`](../../docs/design/api/error-details-producers.md)); flag a new endpoint that invents an ad-hoc error shape. - Keep the public API contract in `apps/api/api/` apart from the server implementation in `apps/api/internal/`: they sit on opposite sides of the licensing split in [`LICENSING.md`](../../LICENSING.md).