Releases: SystangoTechnologies/swagger-generator-koa
Releases · SystangoTechnologies/swagger-generator-koa
Dependencies update and Improvement
Updated dependencies to latest version.
Improvement & bug fixes.
Support of node active LTS 12.16.
Added Request Parameter Validation Function
- Use
validation
function exported from this module to validate request params.
'use strict';
const Router = require('koa-router');
const router = new Router();
const userController = require('../controller/user');
const {validation} = require('swagger-generator-koa');
var requestModel = require('../requestModel/users');
const BASE_URL = `/users`;
router.post(`${BASE_URL}/`, validation(requestModel[0]), userController.createUser);
module.exports = router;
Typescript Error fix
Remove unnecessary files from module
First release
Features
- Generate swagger documentation automatically for koa app with minimal efforts
- Perform validations using Joi with the same request objects as required for swagger