Skip to content

tsoa-next / tsoa-next / createOpenApiSpecGenerator

Function: createOpenApiSpecGenerator()

ts
function createOpenApiSpecGenerator(config?): SpecGenerator;

Defined in: packages/tsoa/src/spec.ts:63

Creates a runtime spec generator that lazily builds the OpenAPI document once per generator instance using @tsoa-next/cli, then caches the generated spec object and serialized strings for subsequent reads.

Parameters

config?

RuntimeSpecConfigSnapshot

Returns

SpecGenerator

TypeScript-first OpenAPI generation, route generation, and runtime validation.