Documentation
¶
Overview ¶
codegen regenerates the typed API clients listed in internal/registry/services.yaml: for every service with a `package`, it converts the Swagger 2.0 spec from the backend monorepo to OpenAPI 3 (specs/<package>.openapi.json) and runs a pinned oapi-codegen with internal/api/<package>/oapi-codegen.yaml.
Usage: go run ./tools/codegen -mono ../backend-mono [-only snapdb,langsync]
-mono is the backend monorepo checkout, or any directory with the same apps/<app>/docs/<file> layout (a published spec artifact).
Click to show internal directories.
Click to hide internal directories.