diff --git a/src/commands/generate/fromTemplate.ts b/src/commands/generate/fromTemplate.ts index 58b0d782391..9db538cca51 100644 --- a/src/commands/generate/fromTemplate.ts +++ b/src/commands/generate/fromTemplate.ts @@ -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);