koa-swagger-decorator
koa-swagger-decorator copied to clipboard
using decorator to automatically generate swagger doc for koa-router
Hello,当我使用validate功能时,发现只会说`incorrect field`,但不会明确的指出应该是什么。我看了源码发现你的validate是自己定义的规则与校验方式,为什么不使用https://github.com/node-modules/parameter 这个更通用一点方式呢?当然,这需要做swagger和paramter两种结构间的协调。
hi i want to pass multiple key in header but i am able to pass single key value is it possible to pass multiple key in this swagger..? if yes...
hello sir basically, I want to add three middleware in my code 1> basic auth with userName and password 2> api auth with api_key 3> user auth with authorization i...
This npm package is a perfect starting point for the Open API generation on Koa projects. But it's very specific, you are forcing people to use the controller as a...
 new实例的时候添加的Authorization和content-type项  在网页上填入了具体信息  接口查询还是报401未授权 后端接口没问题,以上token和content-type设置在postman跑过,是可以查询到数据的,但是在网页swagger-ui报401,如何处理?
找不到“jest”的类型定义文件。 程序包含该文件是因为: 在 compilerOptions 中指定的类型库 "jest" 的入口点ts。 我正常的使用,但是node_modules包下的koa-swagger-decorator里的ts.config出现了这个错误
引入之后,在控制器目录下使用@,显示报错,同时按npm官网引入.babelrc文件,依然无法解决
我编译程序的js文件为 mjs, SwaggerRouter 的mapDir函数操作会报错,因为 require 语句 .pnpm\[email protected]\node_modules\koa-swagger-decorator\dist\utils.js:46 const obj = require(filepath); ^ Error [ERR_REQUIRE_ESM]: require() of ES Module .......\router\pub.router.js from E:\project\mtd-koa\node_modules\.pnpm\[email protected]\node_modules\koa-swagger-decorator\dist\utils.js not supported.
Swagger supports header parameters as described here https://swagger.io/docs/specification/describing-parameters/#header-parameters The example I would like to see is add a `@header()` parameter like this example for a GitHub webhook: ```typescript export default...
The problem: to register UserController with SwaggerRouter, we need to call `swaggerRouter.applyRoute(UserController);` and swaggerRouter init UserController by itself But the controller should be call from Container of Inversify `const userController...