cdimascio / express-openapi-validator

🦋 Auto-validates api requests, responses, and securities using ExpressJS and an OpenAPI 3.x specification

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add support to multiple specs on the same routes

naor10 opened this issue · comments

Is your feature request related to a problem? Please describe.
Cannot manage to apply to the same routes multiple specs.

Describe the solution you'd like
apiSpec prop would have the ability to get an array of paths.

Describe alternatives you've considered
I tried to manually merge the files into one file.

To accommodate this the path must differ e.g. /v1 and /v2. Using the same path will expectedly result in conflicts