maxdome / swagger-combine

Combines multiple Swagger schemas into one dereferenced schema.
MIT License
132 stars 36 forks source link

When using from CLI, getting socket hang up error #97

Open kvskranthikumar opened 4 years ago

kvskranthikumar commented 4 years ago

Using below cmd - swagger-combine config.json -o combinedSchema.json

I am able to access the swagger JSON directly but when added that in the config.json, I am getting an error as "socket hang up".

Config.json content -

{
  "swagger": "2.0",
  "info": {
    "title": "Basic Swagger Combine Example",
    "version": "1.0.0"
  },
  "apis": [
    {
      "url": "http://testsite:7000/Products/swagger/v1/swagger.json"
    },
    {
      "url": "http://testsite:7000/Planograms/swagger/v1/swagger.json"
    },
    {
      "url": "http://testsite:7000/Floorplans/swagger/v1/swagger.json"
    }
  ]
}