From 01a428c3cd86e7fa344f6073060c242666a78474 Mon Sep 17 00:00:00 2001 From: Sven Panne Date: Tue, 29 Jan 2019 09:11:52 +0100 Subject: [PATCH] Use actual value of generateSourceCodeOnly in python generator. --- .../org/openapitools/codegen/languages/PythonClientCodegen.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java index 27cde95798ef..b250f64ae7c9 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/languages/PythonClientCodegen.java @@ -194,7 +194,7 @@ public void processOpts() { Boolean generateSourceCodeOnly = false; if (additionalProperties.containsKey(CodegenConstants.SOURCECODEONLY_GENERATION)) { - generateSourceCodeOnly = true; + generateSourceCodeOnly = Boolean.valueOf(additionalProperties.get(CodegenConstants.SOURCECODEONLY_GENERATION).toString()); } additionalProperties.put(CodegenConstants.PROJECT_NAME, projectName);