maxdome / swagger-combine

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

Filter by Tags #54

Open cbautista1002 opened 5 years ago

cbautista1002 commented 5 years ago

Great project!

I'm wondering if there could be a way to filter by tags when generating the output file? As in, only include paths (and their methods) that contain a specific tag?

  apis: [
    {
      url: 'http://petstore.swagger.io/v2/swagger.json',
      tags: {
        include: ['myPetTag'],
      }
    }
  ]
  ...

I need to be able to make multiple versions of combined swagger files based on tags. So given 2 or more swagger files, create a combined file that contains only paths with these tags.

I started looking through the source, so perhaps I can contribute.

Thanks!