title: Is There A Way To Merge Joi Schemas?
body: <p>Is there any way to merge two joi schemas into a single schema?</p>
  
  <p>Schema 1</p>
  
  <pre><code>{
    alpha: Joi.number().required(),
    beta: Joi.string().required(),
    chalie: Joi.object({
      xray: Joi.number().required(),
    }).required()
  }
  </code></pre>
  
  <p>Schema 1</p>
  
  <pre><code>{
    delta: Joi.string().required(),
    echo: Joi.number().required(),
    charlie: Joi.object({
      zulu: Joi.string().required(),
    }).required()
  }
  </code></pre>
  
  <p>Merged Schema:</p>
  
  <pre><code>{
    alpha: Joi.number().required(),
    beta: Joi.string().required(),
    chalie: Joi.object({
      xray: Joi.number().required(),
      zulu: Joi.string().required(),
    }).required()
    delta: Joi.string().required(),
    echo: Joi.number().required(),
  }
  </code></pre>
  
  <p>Without nested objects it's easily done with <code>Object.assign</code>, but even a deep object merge won't work with the nested objects because the nested object is a function call.</p>