Skip to content

Commit f1c775c

Browse files
committed
just return the validation results
1 parent 8f4a1b1 commit f1c775c

File tree

1 file changed

+1
-7
lines changed

1 file changed

+1
-7
lines changed

src/definitionGenerator.js

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1021,19 +1021,13 @@ class DefinitionGenerator {
10211021

10221022
const apiDesc = stringifyYaml(this.openAPI);
10231023

1024-
const results = await lintFromString({
1024+
return await lintFromString({
10251025
source: apiDesc,
10261026
config: config,
10271027
}).catch((err) => {
10281028
console.error(err);
10291029
throw err;
10301030
});
1031-
1032-
if (results.length) {
1033-
throw results;
1034-
}
1035-
1036-
return true;
10371031
}
10381032
}
10391033

0 commit comments

Comments
 (0)