Documentation
¶
Overview ¶
Package api holds the server side generated from api/openapi.json.
- apigen: generation-time tool that normalises the contract for ogen and writes the role table.
- oas: ogen server code (types, strict handler interface, router, request validation).
- routes: operationId -> method, path, minimum role, module tag (from x-min-role).
Regenerate with `make generate-api`; never edit the generated files.
Directories
¶
| Path | Synopsis |
|---|---|
|
Command apigen prepares api/openapi.json for ogen and writes the role table.
|
Command apigen prepares api/openapi.json for ogen and writes the role table. |
|
Package apijson turns a module's own value into a generated API type through its JSON form, the one way handlers that keep their own structs answer: the generated decoder rejects anything that does not fit the OpenAPI schema, so a drift fails loudly.
|
Package apijson turns a module's own value into a generated API type through its JSON form, the one way handlers that keep their own structs answer: the generated decoder rejects anything that does not fit the OpenAPI schema, so a drift fails loudly. |
|
Package routes maps every operationId of the contract to its method, path, minimum role and module.
|
Package routes maps every operationId of the contract to its method, path, minimum role and module. |
Click to show internal directories.
Click to hide internal directories.