Skip to content

tsoa-next / tsoa-next / SpecPathGateHandler

Type Alias: SpecPathGateHandler

ts
type SpecPathGateHandler = (context) => boolean | Promise<boolean>;

Defined in: packages/runtime/src/decorators/specPath.ts:51

Gate handler used by SpecPath to decide whether a request may receive the spec response.

Parameters

context

SpecRequestContext

Returns

boolean | Promise<boolean>

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