joi-errors-for-forms
joi-errors-for-forms copied to clipboard
Convert Joi errors to form UI or Mongoose schemas, optionally changing the message text.
To fix : https://github.com/eddyystop/joi-errors-for-forms/issues/6 When the path is an array we should join with dot to avoid having `field,subfield`.
For example, if a text input has the name 'address.city', and it has an error, the error object returned by require('joi-errors-for-forms').form is `{address,city: "required"}` instead of `{address.city: "required"}`
Hi i passed error object from the failedAction Handler Joi-errors-for-forms return null Here's the Code ``` createUser : (req, reply, source, error) => { //If there Error if(error){ console.log(error); console.log('Starting...