title: Yup: Ensure at least one of the elements in an array is valid
body: <p>I have the following schema:</p>
  <pre class="lang-js prettyprint-override"><code>const baseSchema = {
    name: Yup.array().of(
      Yup.object().shape({
        lang: Yup.string().required(),
        value: Yup.string()
          .min(2)
          .max(20)
          .required()
      })
    )
  };
  </code></pre>
  <p>Is there a way to consider the schema valid if at least one of the objects in <code>name</code> is valid?</p>
  <p>Edit: essentially it has to use <code>when()</code>, but what I'm struggling with is to find out how to check the other elements in the array.</p>