Skip to content

Releases: tinacious/express-joi-validate

Add TypeScript support, Upgrade Express

02 Jul 03:57
552aaeb
Compare
Choose a tag to compare

Adds support for TypeScript usage, e.g.:

import Joi, { SchemaMap } from '@hapi/joi';
import validate from 'express-joi-validate';

const contactSchema: SchemaMap = {
  params: {
    id: Joi.number().required()
  }
};

app.get('/contacts/:id', validate(contactSchema), contactsHandler);

Please note that the explicit declaration of SchemaMap is not necessary as it is inferred.

Express has been upgraded to 4.17.1.

Upgrade @hapi/joi dependency to v17.1.1

17 Apr 04:17
5839040
Compare
Choose a tag to compare
Merge pull request #11 from tinacious/upgrade-joi

Upgrade Joi

Upgrade @hapi/joi dependency

25 May 14:10
8b1b5d6
Compare
Choose a tag to compare

Update README

10 Mar 00:08
4f77828
Compare
Choose a tag to compare

Includes link to blog post with detailed usage and examples

Update dependencies

09 Mar 22:34
72af662
Compare
Choose a tag to compare