apigee-127 / swagger-tools

A Node.js and browser module that provides tooling around Swagger.
MIT License
701 stars 373 forks source link

Is there a way to validate multiple swagger files using swagger-tools validate #561

Closed skumar568 closed 6 years ago

skumar568 commented 6 years ago

Hi,

As per documentation, it states that we can validate multiple swagger file using swagger-tools validate but I am not able to see how. I tried swagger-tools validate /path/to/swagger1.json /path/to/swagger2.json, but it always validates 1st JSON.

Am I missing something?

Regards, Sanjeev

whitlockjc commented 6 years ago

The documentation says that multiple documents are used for Swagger 1.x but for Swagger 2.x, it takes just one document.