Skip to content

tsoa-next / @tsoa-next/cli / buildSpec

Function: buildSpec()

ts
function buildSpec(
   swaggerConfig, 
   compilerOptions?, 
   ignorePaths?, 
   metadata?, 
   defaultNumberType?): Spec;

Defined in: cli/src/module/generate-spec.ts:47

Builds an OpenAPI document in memory without writing it to disk.

Parameters

swaggerConfig

ExtendedSpecConfig

compilerOptions?

CompilerOptions

ignorePaths?

string[]

metadata?

Metadata

defaultNumberType?

"double" | "float" | "integer" | "long"

Returns

Spec

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