title: Validate phone number with Yup?
body: <p>I'm trying to validate a phone number with Yup:</p>
  
  <pre><code>phone: Yup.number()
    .typeError("That doesn't look like a phone number")
    .positive("A phone number can't start with a minus")
    .integer("A phone number can't include a decimal point")
    .min(8)
    .required('A phone number is required'),
  </code></pre>
  
  <p><code>.min(8)</code> validates that the number is 8 or more. So simply entering <code>8</code> will pass. How can I make 8 characters required so <code>1000 0000</code> would pass?</p>