diff --git a/lib/index.js b/lib/index.js index 5feff81e..371a5fab 100644 --- a/lib/index.js +++ b/lib/index.js @@ -4,7 +4,6 @@ // Dependencies var fs = require('fs'); -var path = require('path'); var doctrine = require('doctrine'); var jsYaml = require('js-yaml'); var parser = require('swagger-parser'); @@ -18,12 +17,6 @@ var parser = require('swagger-parser'); * @requires doctrine */ function parseApiFile(file) { - var fileExtension = path.extname(file); - - /* istanbul ignore if */ - if (fileExtension !== '.js') { - throw new Error('Unsupported extension \'' + fileExtension + '\'.'); - } var jsDocRegex = /\/\*\*([\s\S]*?)\*\//gm; var fileContent = fs.readFileSync(file, { encoding: 'utf8' });