We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent afe96f0 commit ec1de9cCopy full SHA for ec1de9c
lib/index.js
@@ -18,12 +18,6 @@ var parser = require('swagger-parser');
18
* @requires doctrine
19
*/
20
function parseApiFile(file) {
21
- var fileExtension = path.extname(file);
22
-
23
- /* istanbul ignore if */
24
- if (fileExtension !== '.js') {
25
- throw new Error('Unsupported extension \'' + fileExtension + '\'.');
26
- }
27
28
var jsDocRegex = /\/\*\*([\s\S]*?)\*\//gm;
29
var fileContent = fs.readFileSync(file, { encoding: 'utf8' });
0 commit comments