title: How can I validate number of digits in a number using JSON Schema (ajv)?
body: <p>In a two-factor authentication (2FA) the form ask a code formed by only 6 digits
  for exampe: 064964</p>
  
  <p>I use the famous <a href="https://github.com/epoberezkin/ajv" rel="nofollow noreferrer">Ajv JSON Schema Validator</a></p>
  
  <p>I can not build the validation scheme for this code:</p>
  
  <pre><code>export const code = {
    'type': 'object',
    'properties': {
       code: {
        'type': ['number'],
         'minimum': 6,
        'minLength': 6
      },
    },
    'required': ['code'],
  };
  </code></pre>
  
  <p>Can you help me?</p>