Joi Schema should contain one field or another
<p>I'm looking into using Joi for api validation.</p>

<p>I can't seem to confirm whether my schema is correct in that I want either the email or mobile to be required (but they both can't be empty/non existent) - is the below correct?</p>

<pre><code>var schemaForRegistration = Joi.object().keys({
      email: Joi.string().email(),
      mobile:Joi.number().integer()
}).without('email', 'mobile');
</code></pre>

<p>Thanks</p>