Skip to content

Commit

Permalink
Validator: Expose ValidationError
Browse files Browse the repository at this point in the history
Signed-off-by: Fadion Dashi <jonidashi@gmail.com>
  • Loading branch information
fadion committed May 28, 2018
1 parent fa707e2 commit 588985f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/validator/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
const Validator = require('./lib/validator')
const Middleware = require('./lib/middleware')
const ValidationError = require('./lib/errors/validation-error')
const Joi = require('joi')

module.exports = {
rule: Joi,
Validator,
ValidatorMiddleware: Middleware
ValidatorMiddleware: Middleware,
ValidationError
}

0 comments on commit 588985f

Please sign in to comment.