koa-swagger-decorator icon indicating copy to clipboard operation
koa-swagger-decorator copied to clipboard

using decorator to automatically generate swagger doc for koa-router

Results 40 koa-swagger-decorator issues
Sort by recently updated
recently updated
newest added

- [ ] remove all babel / js files - [ ] expose more decorators for convenience - [ ] seperating router related decorators & pure swagger related decorators -...

这个组件可以用在typescript的koa项目中吗?我在我们的TS项目中尝试集成这个组件,最终在API列表中显示No operations defined in spec!。我们的TS项目最终编译出来的是一个webpack打包JS文件,会和这个有关系吗?

Resolves: https://www.cve.org/CVERecord?id=CVE-2020-28469 introduced through globby @ 8.0.0 Resolves: https://security.snyk.io/vuln/SNYK-JS-RAMDA-1582370 introduced through ramada 0.27.1 Resolves: https://security.snyk.io/vuln/SNYK-JS-UNSETVALUE-2400660 introduced through globby @ 8.0.0

![image](https://user-images.githubusercontent.com/20558919/145039247-541ef66d-533c-485a-aa7b-d3aefe8121a5.png)

feature

The plugins setting is not work in .babelrc file. My babel version is 7.x and yours is 6.x. How to set the plugins in babel 7.x?

I want to the swagger show this like [ "string" ].It means that I want the body decorator can be used to show array type. 我想swagger像 [ "string" ]这样展示,我想body装饰器可以用来展示array类型。

On each request that is made, the controller class is being called new which resets all the properties within it. Using the example within the repo, for each request that...

Hi all, the [allowedMethods Enum](https://github.com/Cody2333/koa-swagger-decorator/blob/dae586d64f7363d71a0e6ea9b395a36f8ba2c32d/lib/utils.ts#L26) does not include `HEAD`. However, in some use cases it is very useful to allow a `HEAD` request, for example to only check the accessibility...

I want my API methods in the Swagger-UI sorted either by methods (GET-POST-PUT-DELETE) OR/AND alphabetically. So far, all methods are displayed in a random order, even not in the order...

ts项目中设置body中的参数为required:true,并没有生效

help wanted