Skip to content

tsoa-next / tsoa-next / ValidateParam

Function: ValidateParam()

Call Signature

ts
function ValidateParam<TValue>(options): TValue;

Defined in: packages/runtime/src/routeGeneration/templateHelpers.ts:90

Validates a runtime value against the generated tsoa route schema metadata.

Type Parameters

TValue

TValue

Parameters

options

ValidateParamOptions<TValue>

Returns

TValue

Call Signature

ts
function ValidateParam<TValue>(...args): TValue;

Defined in: packages/runtime/src/routeGeneration/templateHelpers.ts:94

Type Parameters

TValue

TValue

Parameters

args

...ValidateParamTupleArgs<TValue>

Returns

TValue

Deprecated

Use the object overload instead.

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