跳到内容

tsoa-next / @tsoa-next/runtime / SpecPath

函数: SpecPath ()

ts
function SpecPath(
   path?, 
   optionsOrTarget?, 
   cache?): ClassDecorator;

定义如下: packages/runtime/src/decorators/specPath.ts:157

注册为生成的控件本地路由 OpenAPI 文档或自定义生成的响应。

参数

path?

string = 'spec'

相对道道. 默认为 spec。 。 。 。

optionsOrTarget?

| SpecPathTarget | SpecPathOptions

无论是a SpecPathOptions 对象或遗留目标参数。

cache?

SpecPathCache = 'memory'

遗产缓存策略论证. 默认为内存缓存 。

回返

ClassDecorator

贡献者

暂无相关贡献者

页面历史

暂无最近变更历史

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