title: OpenAPI multiple types inside an array
body: <p>I'm having trouble defining a reusable schema component using OpenAPI 3 which would allow for an array that contains multiple types. Each item type inherits from the same parent class but has specific child properties. This seems to work alright in the <code>model</code> view on SwaggerHub but the example view doesn't show the data correctly.</p>
  
  <p><strong>TLDR;</strong> Is there a way to define an array containing different object types in OpenAPI 3?</p>
  
  <pre><code>Response:
    allOf:
      - $ref: '#/components/schemas/BaseResponse'
      - type: object
        title: A full response
        required:
        - things
        properties:
          things:
            type: array
            items:
              anyOf:
                - $ref: '#/components/schemas/ItemOne'
                - $ref: '#/components/schemas/ItemTwo'
                - $ref: '#/components/schemas/ItemThree'
  </code></pre>