Skip to content

Releases: SystangoTechnologies/swagger-generator-koa

Dependencies update and Improvement

06 Mar 13:59
Compare
Choose a tag to compare

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

29 Aug 06:06
Compare
Choose a tag to compare

Remove unnecessary files from module

First release

27 Aug 07:55
Compare
Choose a tag to compare

Features

  • Generate swagger documentation automatically for koa app with minimal efforts
  • Perform validations using Joi with the same request objects as required for swagger