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

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...

enhancement
help wanted

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; } ```...

enhancement

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",...

help wanted

* upgrade babel/eslint/typescript * remove deprecated tslint and use typescript-eslint instead * integrate prettier into eslint as plugin to remove redundant

根据文档编写 swaggerOptions 如下: ![image](https://user-images.githubusercontent.com/19853499/55318336-247cb380-54a5-11e9-9666-32b8a88aeb3f.png) 但在 swagger-html 中进行 “try it out”,并**不会自动**把 token 加到 header 中去 请问是否需要进行其它参数的设置?

feature

目前遇到了一個難題 本身的Params就是一個Array的形式 Example: [ { 'Key': 'Value' } ] 然而 @body 只支援 { 'List': [ { 'Key': 'Value' } ] } 是否能加入一個 @bodys 的方法 讓swagger.json中的 schema: { type: 'object' }...

feature

@query({ parameters: { type: 'array', required: false, items: { type: 'string' }, default: ['parameters1'], collectionFormat: 'multi', uniqueItems: false }}) 當 query 參數只有一個項目時 在 validate(ctx.params, parameters.query); 會因為 ctx.params 不為 array 導致錯誤

feature