koa-swagger-decorator
koa-swagger-decorator copied to clipboard
using decorator to automatically generate swagger doc for koa-router
请问有没有一种方式去自定义model呢,也就是`swagger`里面的`definitions`?
Hello, It seems `date` and `date-time` formats are both treated as `date-time` in the validation, but `date` should accept date only values like `2022-01-01`. According to OpenAPI documentation: ``` An...
``` swaggerOptions: { securityDefinitions: { Bearer: { type: 'apiKey', in: 'header', name: 'Authorization' } } } ``` ``` @securityAll([{ Bearer: [] }]) class Test { @request('get', '/hello') public static helloWorld(ctx):...
is there a way to define the response body? it's not apart of the interface
I am working on a project with a router that exposes the endpoints - "/v1/swagger-html" and "/v1/swagger-json". Running the app locally, the redirect to "swagger-json" works fine. Issue: When not...
the validator function doesn't return value from the next() call, preventing the up middleware get value from che chain.
一会儿能加载一会儿加载不出来的 
It would be great if we could specify different types in @body, or another decorator like @bodies to enable us to support different payload formats. For example: ```ts @request('POST', '/example-url')...
Defining all properties of the accepted JSON payload in the schema itself still unintentionally allows additional properties in body of request. Setting minimum and maximum values of the field in...
官网文档说明链接:https://swagger.io/docs/specification/paths-and-operations/ operationId is an optional unique string used to identify an operation. If provided, these IDs must be unique among all operations described in your API.