It seems pretty straight forward to validate user\'s input in Node.js RESTapi with Joi.
Joi
But the problem is that my app is not written in English. That m
A solution I have found is to set:
var schema = Joi.object().keys({ firstName: Joi.string().min(5).max(10).required().label("Your error message in here"), lastName: Joi.string().min(5).max(10).required() .. });
Then print the label from the callback error variable
label
error