title: Swagger-PHP attribute paths is missing
body: <p>In the project I use swagger-php and on production server I get the validation error "object has missing required properties ([\"paths\"])".
  Despite this error swagger UI working fine.</p>
  
  <p>Annotations in my php files:</p>
  
  <pre><code>/**&lt;br /&gt;
   * @SWG\Swagger(&lt;br /&gt;
   *  @SWG\Info(&lt;br /&gt;
   *      title="Заголовок",&lt;br /&gt;
   *      description="Описпание",&lt;br /&gt;
   *      contact={&lt;br /&gt;
   *          "name": "Дмитрий Сабиров",&lt;br /&gt;
   *          "email": "test@yandex.ru"&lt;br /&gt;
   *      },&lt;br /&gt;
   *      license={&lt;br /&gt;
   *          "name": "MIT",&lt;br /&gt;
   *          "url": "https://opensource.org/licenses/MIT"&lt;br /&gt;
   *      },&lt;br /&gt;
   *      version="1.0.0"&lt;br /&gt;
   *  ),&lt;br /&gt;
   *  schemes={"http"},&lt;br /&gt;
   *  host=API_HOST,&lt;br /&gt;
   *  basePath="/api"&lt;br /&gt;
   * )&lt;br /&gt;
   */&lt;br /&gt;
  </code></pre>
  
  <p>and</p>
  
  <pre><code>/**&lt;br /&gt;
   * @SWG\Get(&lt;br /&gt;
   *  description="Проверка существования пользователя с данным емайлом.",&lt;br /&gt;
   *  path="/users/check-email",&lt;br /&gt;
   *  produces={"application/json"},&lt;br /&gt;
   *  @SWG\Parameter(&lt;br /&gt;
   *          name="email",&lt;br /&gt;
   *          in="query",&lt;br /&gt;
   *          description="проверяемый емайл",&lt;br /&gt;
   *          required=true,&lt;br /&gt;
   *          type="string"&lt;br /&gt;
   *  ),&lt;br /&gt;
   *  @SWG\Response(&lt;br /&gt;
   *    response=200,&lt;br /&gt;
   *    description="Если пользователь не существует - создаётся и ысылается письмо.",&lt;br /&gt;
   *    @SWG\Schema(&lt;br /&gt;
   *          type="object",&lt;br /&gt;
   *          @SWG\Items(&lt;br /&gt;
   *              @SWG\Property(&lt;br /&gt;
   *                  property="emailExist",&lt;br /&gt;
   *                  type="boolean"&lt;br /&gt;
   *              ),&lt;br /&gt;
   *              @SWG\Property(&lt;br /&gt;
   *                  property="userCreated",&lt;br /&gt;
   *                  type="boolean"&lt;br /&gt;
   *              ),&lt;br /&gt;
   *              @SWG\Property(&lt;br /&gt;
   *                  property="sentActivationEmail",&lt;br /&gt;
   *                  type="boolean"&lt;br /&gt;
   *              )&lt;br /&gt;
   *          ),&lt;br /&gt;
   *          example={&lt;br /&gt;
   *              "application/json": {&lt;br /&gt;
   *                  "emailExist": true,&lt;br /&gt;
   *                  "userCreated": false,&lt;br /&gt;
   *                  "sentActivationEmail": false&lt;br /&gt;
   *              }&lt;br /&gt;
   *          }&lt;br /&gt;
   *    )&lt;br /&gt;
   *  ),&lt;br /&gt;
   *  @SWG\Response(&lt;br /&gt;
   *     response=500,&lt;br /&gt;
   *     description="внутренняя ошибка сервера",&lt;br /&gt;
   *  )&lt;br /&gt;
   * )&lt;br /&gt;
   */&lt;br /&gt;
  </code></pre>
  
  <p>swagger api response is :</p>
  
  <pre class="lang-html prettyprint-override"><code>{
    "swagger": "2.0",
    "info": {
      "title": "Заголовок",
      "description": "Описпание",
      "contact": {
        "name": "Дмитрий Сабиров",
        "email": "test@yandex.ru"
      },
      "license": {
        "name": "MIT",
        "url": "https://opensource.org/licenses/MIT"
      },
      "version": "1.0.0"
    },
    "host": "46.36.218.161",
    "basePath": "/api",
    "schemes": ["http"],
    "paths": {
      "/users/check-email": {
        "get": {
          "description": "Проверка существования пользователя с данным емайлом.",
          "produces": ["application/json"],
          "parameters": [{
            "name": "email",
            "in": "query",
            "description": "проверяемый емайл",
            "required": true,
            "type": "string"
          }],
          "responses": {
            "200": {
              "description": "Если пользователь не существует - создаётся и высылается письмо.",
              "schema": {
                "type": "object",
                "items": {
                  "properties": {
                    "emailExist": {
                      "type": "boolean"
                    },
                    "userCreated": {
                      "type": "boolean"
                    },
                    "sentActivationEmail": {
                      "type": "boolean"
                    }
                  }
                },
                "example": {
                  "application/json": {
                    "emailExist": true,
                    "userCreated": false,
                    "sentActivationEmail": false
                  }
                }
              }
            },
            "500": {
              "description": "внутренняя ошибка сервера"
            }
          }
        }
      }
    },
    "definitions": {}
  }
  </code></pre>
  
  <p>but swagger UI doc return error :</p>
  
  <pre class="lang-html prettyprint-override"><code>{
    "messages": ["attribute paths is missing"],
    "schemaValidationMessages": [{
      "level": "error",
      "domain": "validation",
      "keyword": "required",
      "message": "object has missing required properties ([\"paths\"])",
      "schema": {
        "loadingURI": "#",
        "pointer": ""
      },
      "instance": {
        "pointer": ""
      }
    }]
  }
  </code></pre>
  
  <p>how fix this error ?</p>