Skip to content

Commit

Permalink
Update models.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
Souvikns committed Jul 12, 2024
1 parent 482bb49 commit d4516e8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/commands/generate/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit d4516e8

Please sign in to comment.