Skip to content

Commit

Permalink
fix: generating fromTemplate with refs in spec
Browse files Browse the repository at this point in the history
  • Loading branch information
Laupetin committed Jan 15, 2024
1 parent 3883073 commit f5247f3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/commands/generate/fromTemplate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ export default class Template extends Command {

CliUx.ux.action.start('Generation in progress. Keep calm and wait a bit');
try {
await generator.generateFromString(specification.text(), genOption);
await generator.generateFromString(specification.text(), {...genOption, path: asyncapi});
CliUx.ux.action.stop();
} catch (err: any) {
CliUx.ux.action.stop('done\n');
Expand Down

0 comments on commit f5247f3

Please sign in to comment.