title: json schema not working for type = number and pattern = 10 digit regular pattern
body: <p>I am trying to write a jsonschema that works for a phone number which is a number and it should be equal to 10 digit. To achieve this i have written a json schema as given below</p>
  <pre><code>{&quot;title&quot;:&quot;Schema&quot;,&quot;description&quot;:&quot;Schema&quot;,&quot;type&quot;:&quot;object&quot;,&quot;properties&quot;:{&quot;phone_number&quot;:{&quot;type&quot;:&quot;number&quot;,&quot;pattern&quot;:&quot;^[0-9]{10}$&quot;}}}.
  </code></pre>
  <p>My request json is <code>{&quot;phone_number&quot;:123481}</code></p>
  <p>Ideally my json schema should throw an exception telling me the phone_number is not 10-digit but there is no error which is being thrown. Can somebody tell me what is wrong in this code.</p>