Skip to content

Commit 8c28a9b

Browse files
authored
fix: modelina supporting asyncapi v3 (#1479)
1 parent 482bb49 commit 8c28a9b

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/commands/generate/models.ts

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,9 @@ export default class Models extends Command {
3030
}
3131

3232
const inputFile = (await load(file)) || (await load());
33-
if (inputFile.isAsyncAPI3()) {
34-
this.error('Generate Models command does not support AsyncAPI v3 yet, please checkout https://github.com/asyncapi/modelina/issues/1376');
35-
}
33+
3634
const { document, diagnostics ,status } = await parse(this, inputFile, flags);
35+
3736
if (!document || status === 'invalid') {
3837
const severityErrors = diagnostics.filter((obj) => obj.severity === 0);
3938
this.log(`Input is not a correct AsyncAPI document so it cannot be processed.${formatOutput(severityErrors,'stylish','error')}`);

0 commit comments

Comments
 (0)