codegen

command
v0.20.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

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).

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL