maxdome / swagger-combine

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

Add option to include global parameters #59

Closed jalopezcar closed 5 years ago

jalopezcar commented 5 years ago

The current implementation doesn't take into account the global parameters from each spec. For example,

swagger: '2.0'
info:
  version: 1.0.0
  ..
parameters:
  CommonPathParameterHeader:
    name: COMMON-PARAMETER-HEADER
    type: string
    in: header
    required: true

I'd like to add a new option, includeParameters. If it's true it would merge the global parameters from all the specs.

It would be implemented in a similar way as includeDefinitions (https://github.com/maxdome/swagger-combine/pull/46)