From 58696c365396b7527ac6aa670b777e7d196390be Mon Sep 17 00:00:00 2001 From: solufa Date: Wed, 16 Aug 2023 04:16:24 +0900 Subject: [PATCH] fix: support output CLI option --- src/getConfig.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/getConfig.ts b/src/getConfig.ts index 02e1f72f..5a1413e5 100644 --- a/src/getConfig.ts +++ b/src/getConfig.ts @@ -20,7 +20,7 @@ const createConfig = (config: ConfigFile): Config => { const openapi = config.openapi!; return { input: openapi.inputFile, - output: config.input, + output: openapi.outputDir ?? config.input, trailingSlash: config.trailingSlash, outputEachDir: config.outputEachDir, outputMode: config.outputMode,