Closed sergio11 closed 8 years ago
@sergio11 are you currently using Joi for validation in your express application?
yes, I am developing a proyect based on this boilerplate KunalKapadia/express-mongoose-es6-rest-api. In which it is used express-validation and JOI for API parameter validation.
how could employ relish here?
@sergio11 nice!
Relish (in it's current state) is tightly coupled to the Hapi framework and its route option's failAction
. This means that Relish is not compatible with Express at the moment.
I would recommend checking out Joi's any.error
option for setting custom errors on a Joi schema.
Relish could be used on a express aplication with express validation middleware?
If it is not possible, Could you suggest me an alternative?
Greetings and thank you.