title: What is the difference between Joi.object() and Joi.object().keys()?
body: <p>According to Joi documentation, you can use <code>Joi.object()</code> like so:</p>
  
  <pre><code>const object = Joi.object({
      a: Joi.number().min(1).max(10).integer(),
      b: Joi.any()
  });
  </code></pre>
  
  <p>But you can also write an equivalent code using <code>Joi.object().keys()</code> like so:</p>
  
  <pre><code>const object = Joi.object().keys({
      a: Joi.number().min(1).max(10).integer(),
      b: Joi.any()
  });
  </code></pre>
  
  <p>What's the difference between the two?</p>