Skip to content

Commit e315777

Browse files
committed
fix: fix parsing valid files
1 parent ebd6f03 commit e315777

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/importSpecs.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ export function importSpecs({
5555
try {
5656
const data = readFileSync(join(process.cwd(), sourceDirectory + '/' + filename), 'utf-8');
5757
const { ext } = parse(sourceDirectory + '/' + filename);
58-
if (['.yaml', '.yml', '.json'].includes(ext.toLowerCase())) {
58+
if (!['.yaml', '.yml', '.json'].includes(ext.toLowerCase())) {
5959
console.log(chalk.red(`Skipping ${filename} as it is not a valid openapi/swagger file`));
6060
return;
6161
}

0 commit comments

Comments
 (0)