Skip to content

Releases: SystangoTechnologies/swagger-generator-express

Added validation files in package json

06 Mar 11:30
Compare
Choose a tag to compare

Added validation files in package json to publish with npm module.

Added Validation function for request param validation.

05 Mar 11:38
Compare
Choose a tag to compare

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

27 Feb 07:07
Compare
Choose a tag to compare

Updated dependencies to latest version.
Improvement & bug fixes.
Support of node active LTS 12.16.

Typescript Error fix

29 Aug 06:05
Compare
Choose a tag to compare

Remove unnecessary files from module

NPM Release

27 Aug 07:51
Compare
Choose a tag to compare

Updates required for npm release

First release

27 Aug 07:40
Compare
Choose a tag to compare

Features

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