Web & HTTP3 exports
Raw Markdown/web/app/graph/openapi
Automatic OpenAPI 3.1 specification generator from /web/app route graphs and Struct schemas.
Functions & symbols#
graph->openapi#
function
Construct an OpenAPI spec from an App-Graph.
| Parameter | Type | Optional | Description |
|---|---|---|---|
graph | Any | required | — |
info | Any | required | — |
overrides | Any | required | — |
Returns:
Anyroutes->openapi#
function
Constructs an OpenAPI 3.0.3 specification directly from route arrays and optional Struct metadata.
| Parameter | Type | Optional | Description |
|---|---|---|---|
routes | Any | required | — |
info | Any | required | — |
Returns:
Anystruct->openapi-schema#
function
Converts a Tangu `Struct` type into an OpenAPI 3.0 JSON Schema map.
| Parameter | Type | Optional | Description |
|---|---|---|---|
struct-type | Any | required | — |
Returns:
Any