跳到内容

tsoa-next / tsoa-next / TsoaRoute / ParameterSchema

接口:参数Schema ​

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:72

路由参数的运行时计划 。

扩展 ​

属性 ​

additionalProperties? ​

ts
optional additionalProperties?: boolean | PropertySchema;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:67

继承自 ​

PropertySchema.additionalProperties


array? ​

ts
optional array?: PropertySchema;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:61

继承自 ​

PropertySchema.array


dataType? ​

ts
optional dataType?: TypeStringLiteral;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:56

继承自 ​

PropertySchema.dataType


default? ​

ts
optional default?: unknown;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:66

继承自 ​

PropertySchema.default


enums? ​

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

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:62

继承自 ​

PropertySchema.enums


externalValidator? ​

ts
optional externalValidator?: ExternalValidatorDescriptor;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:60

继承自 ​

PropertySchema.externalValidator


in ​

ts
in: string;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:75


name ​

ts
name: string;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:74


nestedProperties? ​

ts
optional nestedProperties?: object;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:68

索引签名 ​

ts
[name: string]: PropertySchema

继承自 ​

PropertySchema.nestedProperties


parameterIndex? ​

ts
optional parameterIndex?: number;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:73


ref? ​

ts
optional ref?: string;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:57

继承自 ​

PropertySchema.ref


required? ​

ts
optional required?: boolean;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:58

继承自 ​

PropertySchema.required


subSchemas? ​

ts
optional subSchemas?: PropertySchema[];

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:64

继承自 ​

PropertySchema.subSchemas


type? ​

ts
optional type?: PropertySchema;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:63

继承自 ​

PropertySchema.type


validationStrategy? ​

ts
optional validationStrategy?: ValidationStrategy;

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:59

继承自 ​

PropertySchema.validationStrategy


validators? ​

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

定义如下: packages/runtime/src/routeGeneration/tsoa-route.ts:65

继承自 ​

PropertySchema.validators

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史

以 TypeScript 为先的 OpenAPI 生成、路由生成与运行时验证。