Skip to content

tsoa-next / @tsoa-next/runtime / Validate

Function: Validate()

ts
function Validate(...args): ParameterDecorator;

Defined in: packages/runtime/src/decorators/validate.ts:141

Attaches external-schema validation metadata to a controller parameter.

Supported forms are @Validate(schema), @Validate(kind, schema), and @Validate({ kind, schema }).

Parameters

args

...unknown[]

Returns

ParameterDecorator

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