Tanguv0.35.0
Web & HTTP3 exports
Raw Markdown

/web/app/graph/openapi

Automatic OpenAPI 3.1 specification generator from /web/app route graphs and Struct schemas.

(use /web/app/graph/openapi)

Functions & symbols#

graph->openapi#

function
(graph->openapi graph info overrides)

Construct an OpenAPI spec from an App-Graph.

ParameterTypeOptionalDescription
graphAnyrequired—
infoAnyrequired—
overridesAnyrequired—
Returns:Any

routes->openapi#

function
(routes->openapi routes info)

Constructs an OpenAPI 3.0.3 specification directly from route arrays and optional Struct metadata.

ParameterTypeOptionalDescription
routesAnyrequired—
infoAnyrequired—
Returns:Any

struct->openapi-schema#

function
(struct->openapi-schema struct-type)

Converts a Tangu `Struct` type into an OpenAPI 3.0 JSON Schema map.

ParameterTypeOptionalDescription
struct-typeAnyrequired—
Returns:Any