title: Joi Nested schema
body: <p>I am trying to create nested schema in joi and it is throwing error  </p>
  
  <p>[Error: Object schema cannot be a joi schema]</p>
  
  <pre><code>var nestedSchema = joi.object({
      b: joi.number()
  });
  
  var base = joi.object({
      a: joi.string(),
      nestedData:joi.object(nestedSchema)
  });
  </code></pre>
  
  <p>How should i define nested schema in joi?</p>