I am writing node API based on KOA framework. For validation I prefer Joi validation and add a middleware. Now I want integrate Swagger. But I think that I write the same part of code twice (request data validation part, one in joi validation , another in swagger yaml file). Please, give me an example or the best way to integrate swagger, koa and joi.
Asked
Active
Viewed 1,281 times
4
-
this project is just doing what you asking for : https://github.com/zaaack/koa-joi-swagger – ivan Jan 07 '18 at 09:16