title: How to have custom message in JOI Validation
body: <p>I am new to NodeJS and need help. I am using JOI as schema validation and I need to have the custom message for each validation. Like if min(3) is there I want custom message and if same field has required then I want different custom message for that.</p>
  
  <p>Please suggest link to any example where I can achieve this. Below is what I was trying.</p>
  
  <pre><code>const schema = {
      name: Joi.string().min(3).error((error) =&gt; "Min 3 Characters").required().error((error) =&gt; "Field is required")
    };
  </code></pre>