Skip to content

tsoa-next / tsoa-next / StringValidator

Interface: StringValidator ​

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

String validation rules supported by runtime route metadata.

Properties ​

isString? ​

ts
optional isString?: object;

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

errorMsg? ​

ts
optional errorMsg?: string;

maxLength? ​

ts
optional maxLength?: object;

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

errorMsg? ​

ts
optional errorMsg?: string;

value ​

ts
value: number;

minLength? ​

ts
optional minLength?: object;

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

errorMsg? ​

ts
optional errorMsg?: string;

value ​

ts
value: number;

pattern? ​

ts
optional pattern?: object;

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

errorMsg? ​

ts
optional errorMsg?: string;

value ​

ts
value: string;

title? ​

ts
optional title?: object;

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

errorMsg? ​

ts
optional errorMsg?: string;

value ​

ts
value: string;

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