title: Object array rendered as empty array in Swagger UI
body: <p>I have the following model definitions in an OpenAPI/Swagger spec:</p>
  
  <pre><code>"definitions": {
      "models.Equipment": {
          "title": "Equipment",
          "type": "object",
          "properties": {
              "Features": {
                  "type": "array",
                  "items": {
                      "$ref": "#/definitions/models.Feature"
                  }
              },
              "Id": {
                  "type": "integer",
                  "format": "int64"
              },
              "IdType": {
                  "type": "string"
              },
              "Name": {
                  "type": "string"
              },
              "Price": {
                  "type": "integer",
                  "format": "int32"
              }
          }
      },
      "models.Feature": {
          "title": "Feature",
          "type": "object",
          "properties": {
              "Equipments": {
                  "type": "array",
                  "items": {
                      "$ref": "#/definitions/models.Equipment"
                  }
              },
              "Id": {
                  "type": "integer",
                  "format": "int64"
              },
              "IdFeature": {
                  "$ref": "#/definitions/models.Feature"
              },
              "Name": {
                  "type": "string"
              }
          }
      }
  }
  </code></pre>
  
  <p>In the <code>Feature</code> model, he <code>Equipments</code> property is defined as an array of <code>Equipment</code> models, but Swagger UI 3.x renders it as an empty array <code>[]</code>. Everywhere <code>Feature</code> model is used, like as examples for <code>POST</code> method in <code>Feature</code> I have this kind of display.</p>
  
  <p><img src="https://i.stack.imgur.com/MBgUS.png" alt="swagger-ui bug"></p>
  
  <p>Is the definition incorrect in some way?</p>
  
  <p>The complete spec is here:<br/>
  <a href="https://dl.dropboxusercontent.com/s/anjfhgxhr0pfmnu/swagger-bug.json" rel="nofollow noreferrer">https://dl.dropboxusercontent.com/s/anjfhgxhr0pfmnu/swagger-bug.json</a></p>