Skip to content

tsoa-next / tsoa-next / StringValidator

Interface: StringValidator

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

String validation rules supported by runtime route metadata.

Properties

isString?

ts
optional isString?: object;

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

errorMsg?

ts
optional errorMsg?: string;

maxLength?

ts
optional maxLength?: object;

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

errorMsg?

ts
optional errorMsg?: string;

value

ts
value: number;

minLength?

ts
optional minLength?: object;

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

errorMsg?

ts
optional errorMsg?: string;

value

ts
value: number;

pattern?

ts
optional pattern?: object;

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

errorMsg?

ts
optional errorMsg?: string;

value

ts
value: string;

title?

ts
optional title?: object;

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

errorMsg?

ts
optional errorMsg?: string;

value

ts
value: string;

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