title: How can I validate "number of digits" from joi using nodejs?
body: <p>i want that if the number of digits in the input field in less/more than 14(for example) then joi should return an error.</p>
  
  <p>how can i do this with the type of <strong>number</strong> not for string.</p>