Skip to content

buildOpenApiDocument

function buildOpenApiDocument<Action, Tag>(options): Record<string, unknown>;

Defined in: src/server/openapi.ts:151

Build the OpenAPI 3.1 document for a route table.

Type Parameter
Action extends string
Tag extends string
Parameter Type
options OpenApiOptions<Action, Tag>

Record<string, unknown>

const openapi = () =>
buildOpenApiDocument({ routes: ROUTES, title, version: VERSION, basePath, schemas, tags });