From d2ec6e4dc4b742bd2c2010dcdea13287bb08ed1d Mon Sep 17 00:00:00 2001 From: Jan Date: Fri, 1 Dec 2023 11:19:16 +0100 Subject: [PATCH] fix: generating fromTemplate with refs in spec --- src/commands/generate/fromTemplate.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/generate/fromTemplate.ts b/src/commands/generate/fromTemplate.ts index e53ea665cb2..41b69bc7955 100644 --- a/src/commands/generate/fromTemplate.ts +++ b/src/commands/generate/fromTemplate.ts @@ -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');