title: OpenAPI 3: Use array of objects for requestBody example
body: <p><strong>How can I define <code>workingDays</code> as array so that <code>dayIndex</code>, <code>dayStart</code> and <code>dayEnd</code> are one object inside?</strong></p>
  <pre><code> * /business-calendar/:
   *    post:
   *      description: Add a new business calender
   *      responses:
   *        '200':
   *          description: Business calendar added
   *      requestBody:
   *        content:
   *          application/json:
   *            schema:
   *              type: object
   *            example:
   *              name: &quot;Standard&quot;
   *              validFrom: &quot;2021-01-01T00:00:00.000Z&quot;
   *              validTo: &quot;2021-12-31T00:00:00.000Z&quot;
   *              useHolidays: true
   *              workingDays:
   *                dayIndex: 0
   *                dayStart: &quot;8:00&quot;
   *                dayEnd: &quot;20:00&quot;
   */
  </code></pre>
  <p>Current output:</p>
  <pre><code>{
    &quot;name&quot;: &quot;Standard&quot;,
    &quot;validFrom&quot;: &quot;2021-01-01T00:00:00.000Z&quot;,
    &quot;validTo&quot;: &quot;2021-12-31T00:00:00.000Z&quot;,
    &quot;useHolidays&quot;: true,
    &quot;workingDays&quot;: {
      &quot;dayIndex&quot;: 0,
      &quot;dayStart&quot;: &quot;8:00&quot;,
      &quot;dayEnd&quot;: &quot;20:00&quot;
    }
  }
  </code></pre>
  <p>Desired output:</p>
  <pre><code>{
    &quot;name&quot;: &quot;Standard&quot;,
    &quot;validFrom&quot;: &quot;2021-01-01T00:00:00.000Z&quot;,
    &quot;validTo&quot;: &quot;2021-12-31T00:00:00.000Z&quot;,
    &quot;useHolidays&quot;: true,
    &quot;workingDays&quot;: [
      {
        &quot;dayIndex&quot;: 0,
        &quot;dayStart&quot;: &quot;8:00&quot;,
        &quot;dayEnd&quot;: &quot;20:00&quot;
      }
    ]
  }
  </code></pre>