Skip to content

Commit

Permalink
fix: generating fromTemplate with refs in spec (#945)
Browse files Browse the repository at this point in the history
Co-authored-by: asyncapi-bot <[email protected]>%0ACo-authored-by: Lukasz Gornicki <[email protected]>
  • Loading branch information
Laupetin and derberg authored Jul 16, 2024
1 parent 382d6bc commit c1e1b39
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 @@ -265,7 +265,7 @@ export default class Template extends Command {
const s = interactive ? spinner() : { start: () => null, stop: (string: string) => console.log(string) };
s.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});
} catch (err: any) {
s.stop('Generation failed');
throw new GeneratorError(err);
Expand Down

0 comments on commit c1e1b39

Please sign in to comment.