From d4516e851f866929f648de326a817813ab5d611c Mon Sep 17 00:00:00 2001 From: souvik Date: Fri, 12 Jul 2024 10:22:49 +0530 Subject: [PATCH] Update models.ts --- src/commands/generate/models.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/commands/generate/models.ts b/src/commands/generate/models.ts index 3f3df551ac8..8a81b0ecd4e 100644 --- a/src/commands/generate/models.ts +++ b/src/commands/generate/models.ts @@ -30,9 +30,7 @@ export default class Models extends Command { } const inputFile = (await load(file)) || (await load()); - if (inputFile.isAsyncAPI3()) { - this.error('Generate Models command does not support AsyncAPI v3 yet, please checkout https://github.com/asyncapi/modelina/issues/1376'); - } + const { document, diagnostics ,status } = await parse(this, inputFile, flags); if (!document || status === 'invalid') { const severityErrors = diagnostics.filter((obj) => obj.severity === 0);