Skip to content

tsoa-next / @tsoa-next/runtime / TsoaRoute / ParameterSchema

Interface: ParameterSchema

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:72

Runtime schema for a route parameter.

Extends

Properties

additionalProperties?

ts
optional additionalProperties?: boolean | PropertySchema;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:67

Inherited from

PropertySchema.additionalProperties


array?

ts
optional array?: PropertySchema;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:61

Inherited from

PropertySchema.array


dataType?

ts
optional dataType?: TypeStringLiteral;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:56

Inherited from

PropertySchema.dataType


default?

ts
optional default?: unknown;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:66

Inherited from

PropertySchema.default


enums?

ts
optional enums?: (string | number | boolean | null)[];

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:62

Inherited from

PropertySchema.enums


externalValidator?

ts
optional externalValidator?: ExternalValidatorDescriptor;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:60

Inherited from

PropertySchema.externalValidator


in

ts
in: string;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:75


name

ts
name: string;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:74


nestedProperties?

ts
optional nestedProperties?: object;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:68

Index Signature

ts
[name: string]: PropertySchema

Inherited from

PropertySchema.nestedProperties


parameterIndex?

ts
optional parameterIndex?: number;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:73


ref?

ts
optional ref?: string;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:57

Inherited from

PropertySchema.ref


required?

ts
optional required?: boolean;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:58

Inherited from

PropertySchema.required


subSchemas?

ts
optional subSchemas?: PropertySchema[];

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:64

Inherited from

PropertySchema.subSchemas


type?

ts
optional type?: PropertySchema;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:63

Inherited from

PropertySchema.type


validationStrategy?

ts
optional validationStrategy?: ValidationStrategy;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:59

Inherited from

PropertySchema.validationStrategy


validators?

ts
optional validators?: Partial<Record<ValidatorKey, {
  errorMsg?: string;
  value?: unknown;
}>>;

Defined in: packages/runtime/src/routeGeneration/tsoa-route.ts:65

Inherited from

PropertySchema.validators

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