PayU / openapi-validator-middleware

Input validation using Swagger (Open API) and ajv
Apache License 2.0
144 stars 50 forks source link

Missing function definition wheb used as Koa middleware #86

Closed kobik closed 5 years ago

kobik commented 5 years ago

Currently validate function is defined as follows

export function validate(req: object, res: object, next: Function): void;

When using TypeScript and Koa, vscode displays an error as Koa middleware should be defined as follows

export function validate(ctx: Context, next: Function): void;