title: Swagger PHP Object instead of Array
body: <p>Example swagger markup for a model </p>
  
  <pre><code>* @SWG\Model(
   * id="UserSubscriptionSearchResultsFilter",
   *  @SWG\Property(name="total", type="integer"),
   *  @SWG\Property(name="perPage", type="integer"),
   *  @SWG\Property(name="query", type="string"),
   *  @SWG\Property(name="sortColumn", type="string"),
   *  @SWG\Property(name="sortDirection", type="string"),
   * )
   */
  
  /**
   * @SWG\Model(
   * id="UserSubscriptionSearchResults",
   *  @SWG\Property(name="results",type="array", items="$ref:UserSubscriptionRepository"),
   *  @SWG\Property(name="total", type="integer"),
   *  @SWG\Property(name="filter",type="object", uniqueItems="$ref:UserSubscriptionSearchResultsFilter")
   * )
   */
  </code></pre>
  
  <p>Right now the schema looks like:</p>
  
  <pre><code>"filter": "object"
  </code></pre>
  
  <p>Instead what I want to see is:</p>
  
  <pre><code>"filter":  {
          "total": 0,
          "perPage": 0,
          "query": "",
          "sortColumn": "",
          "sortDirection": ""
        }
  </code></pre>
  
  <p>Right now I've only been able to create an array object that looks relatively similar to this, but it is still not full spec.</p>
  
  <p>I've read similar issues here:
  <a href="https://github.com/swagger-api/swagger-spec/issues/38" rel="nofollow">https://github.com/swagger-api/swagger-spec/issues/38</a>
  <a href="https://github.com/mission-liao/pyswagger/issues/18" rel="nofollow">https://github.com/mission-liao/pyswagger/issues/18</a></p>
  
  <p>But I've not found a clear answer.</p>