issues
search
Cody2333
/
koa-swagger-decorator
using decorator to automatically generate swagger doc for koa-router
348
stars
81
forks
source link
在最新的版本文档中未看到Authorize如何配置,请问这一块如何配置?
#182
Closed
jack-hate-titanic
closed
10 months ago
Cody2333
commented
10 months ago
可以参考 example 里面的实现
定义 SecuritySchemas:
https://github.com/Cody2333/koa-swagger-decorator/blob/main/example/schemas/extra.ts#L7
在 routeConfig 装饰器中声明 security 字段
https://github.com/Cody2333/koa-swagger-decorator/blob/main/example/controller/demo.ts#L10
jack-hate-titanic
commented
10 months ago
好的,感谢作者
可以参考 example 里面的实现