We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebd6f03 commit e315777Copy full SHA for e315777
src/importSpecs.ts
@@ -55,7 +55,7 @@ export function importSpecs({
55
try {
56
const data = readFileSync(join(process.cwd(), sourceDirectory + '/' + filename), 'utf-8');
57
const { ext } = parse(sourceDirectory + '/' + filename);
58
- if (['.yaml', '.yml', '.json'].includes(ext.toLowerCase())) {
+ if (!['.yaml', '.yml', '.json'].includes(ext.toLowerCase())) {
59
console.log(chalk.red(`Skipping ${filename} as it is not a valid openapi/swagger file`));
60
return;
61
}
0 commit comments