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