cbkelley / swaggerValidator

Simple validator to ensure compliance with Swagger Specifications
GNU General Public License v2.0
4 stars 3 forks source link

Getting Swagger version issue, for non complaint swagger API's #7

Open archanamahajan opened 8 years ago

archanamahajan commented 8 years ago

var specVersion = swaggerRootDoc.swaggerVersion || swaggerRootDoc.swagger; ^ TypeError: Cannot read property 'swaggerVersion' of undefined

archanamahajan commented 8 years ago

I got the above issue when dealing with non complaint swagger API's. Below is the link, where I have tried to resolve the issue. There is little change in index.js file. https://github.com/archanamahajan/swaggerValidator. Thanks.

amistry79 commented 6 years ago

I am getting the below error similar to you. What is the issue?

{ message: 'Could not determine version for swagger spec.' }