title: Swagger cannot create array of objects
body: <p>Hello I'm attempting to create a array of objects in swagger hub</p>
  
  <p>However I seem to be getting an error for seemingly no reason</p>
  
  <pre><code>LocationGetAllResponse:
    properties:
      type: array
      items: 
        $ref: '#/components/schemas/LocationObject'
  
  
  LocationObject:
    type: object
    properties:
      longitude:
        type: number
        example: 1
      latitude:
        type: number
        example: 2
      altitude:
        type: number
        example: 
  </code></pre>
  
  <p>I modelled it after the official docs 
  <a href="https://swagger.io/docs/specification/data-models/data-types/#array" rel="nofollow noreferrer">https://swagger.io/docs/specification/data-models/data-types/#array</a></p>
  
  <p>However the error I'm getting is </p>
  
  <pre><code>Structural error at components.schemas.LocationGetAllResponse.properties.type
  </code></pre>
  
  <p>should be object</p>
  
  <p>Basically at the type:array its saying it should be an object</p>
  
  <p>Any help would be appreciated </p>