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 Dec 1, 2023
1 parent 6ae2570 commit 912b417
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 912b417

Please sign in to comment.