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 d4516e8 commit 34e590a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/commands/generate/models.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export default class Models extends Command {
const inputFile = (await load(file)) || (await load());

const { document, diagnostics ,status } = await parse(this, inputFile, flags);

if (!document || status === 'invalid') {
const severityErrors = diagnostics.filter((obj) => obj.severity === 0);
this.log(`Input is not a correct AsyncAPI document so it cannot be processed.${formatOutput(severityErrors,'stylish','error')}`);
Expand Down

0 comments on commit 34e590a

Please sign in to comment.