koa-swagger-decorator
koa-swagger-decorator copied to clipboard
using decorator to automatically generate swagger doc for koa-router
Hello! I'm trying to set up your module and have some troubles. I made [such file ](https://github.com/ASUDR/backend/blob/try_swagger/src/test.ts) for generating swagger.json without starting app (from docs): ``` import path from 'path';...
Hi! I can't see the swagger-html UI but swagger-json. What is the problem? Chrome DevTools console log as follows > Refused to load the script 'https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.21.0/swagger-ui-bundle.js' because it violates the...
Currently is not possible to define a default response block because the "response" decorator accepts an argument with type IResponses: ```javascript export interface IResponses { [name: number]: any; } ```...
Do not use docker can be normal operation, use docker on the error. ide: webstrom windows10 docker 19 node 10.16 package.json ``` { "name": "keyword_filter", "description": "keywork filter", "author": "kenes",...
* upgrade babel/eslint/typescript * remove deprecated tslint and use typescript-eslint instead * integrate prettier into eslint as plugin to remove redundant
根据文档编写 swaggerOptions 如下:  但在 swagger-html 中进行 “try it out”,并**不会自动**把 token 加到 header 中去 请问是否需要进行其它参数的设置?
目前遇到了一個難題 本身的Params就是一個Array的形式 Example: [ { 'Key': 'Value' } ] 然而 @body 只支援 { 'List': [ { 'Key': 'Value' } ] } 是否能加入一個 @bodys 的方法 讓swagger.json中的 schema: { type: 'object' }...
@query({ parameters: { type: 'array', required: false, items: { type: 'string' }, default: ['parameters1'], collectionFormat: 'multi', uniqueItems: false }}) 當 query 參數只有一個項目時 在 validate(ctx.params, parameters.query); 會因為 ctx.params 不為 array 導致錯誤