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 f6968c4 commit 6ad5541Copy full SHA for 6ad5541
src/printer/index.ts
@@ -43,6 +43,7 @@ export class Printer {
43
) {
44
const { openapi } = document;
45
46
+ if (!openapi) throw new Error(`未找到 openapi 版本号`);
47
if (!openapi.startsWith('3.')) throw new Error(`当前仅支持 openapi 3.x,当前版本为 ${openapi}`);
48
49
this.registerComponents();
0 commit comments