title: How to merge swagger multiple files in single swagger doc file?
body: <p>I have different swagger files for multiple APIs, like swagger1.json for OpenStack API, swagger2.json for Users API etc and I was trying to merge these all swagger files in one single file using remote $ref method.</p>
  
  <p>Here is swagger1.json file for OpenStack api</p>
  
  <pre><code>{
      "stacks": {
          "get": {
              "tags": [
                  "openstack"
              ],
              "summary": "Returns stacks from OpenStack",
              "description": "Returns all stacks from the OpenStack based on tenantId.",
              "consumes": [
                  "application/json"
              ],
              "produces": [
                  "application/json"
              ],
              "parameters": [
                  {
                      "in": "query",
                      "type": "string",
                      "name": "tenantId",
                      "description": "search stacks for tenantId from OpenStack",
                      "required": false
                  }
              ],
              "responses": {
                  "200": {
                      "description": "OK"
                  },
                  "400": {
                      "description": "Unknown Error"
                  },
                  "401": {
                      "description": "Unauthorized"
                  }
              }
          }
      }
  </code></pre>
  
  <p>}</p>
  
  <p>And this is the swagger-merge.json where I want to add multiple swagger doc file using remote reference.</p>
  
  <pre><code>{
  "swagger": "2.0",
  "info": {
      "description": "something here",
      "version": "v0.7.0",
      "title": "The API Gateway",
      "contact": {
          "email": "dp@gmail.com"
      }
  },
  "host": "localhost",
  "port":"9191",
  "basePath": "/api/openstack",
  "tags": [
      {
          "name": "OpenStackApi",
          "description": "Get stacks and running instance form OpenStack"
      }
  ],
  "schemes": [
      "https"
  ],
  "paths": {
      "$ref": "./swagger1.json#/stacks"
  }
  </code></pre>
  
  <p>}</p>
  
  <p>This isn't working for me. I am not able to see API methods I have written inside swagger1.json file. I have upload swaggerUI output. Any idea about what I am doing wrong and how can I solve this issue?<a href="https://i.stack.imgur.com/1HBiN.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1HBiN.png" alt="enter image description here"></a></p>