From ce3e0c7d68308799ae2628793d88da05018b433d Mon Sep 17 00:00:00 2001 From: Gokul Raj S <56819171+GORA-SAG@users.noreply.github.com> Date: Tue, 12 Jan 2021 08:06:03 +0530 Subject: [PATCH] 7358 (#8388) 1. unable to use --global-property models="User,Pet" as this creates only User model. 2. to solve the issue, instead of "," separator used ":" separator 3. made some changes with that --- .../openapitools/codegen/config/CodegenConfiguratorUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/openapi-generator/src/main/java/org/openapitools/codegen/config/CodegenConfiguratorUtils.java b/modules/openapi-generator/src/main/java/org/openapitools/codegen/config/CodegenConfiguratorUtils.java index e6251baa8f04..e1c840d4b840 100644 --- a/modules/openapi-generator/src/main/java/org/openapitools/codegen/config/CodegenConfiguratorUtils.java +++ b/modules/openapi-generator/src/main/java/org/openapitools/codegen/config/CodegenConfiguratorUtils.java @@ -51,7 +51,7 @@ public final class CodegenConfiguratorUtils { public static void applyGlobalPropertiesKvp(String globalProperties, CodegenConfigurator configurator) { final Map map = createMapFromKeyValuePairs(globalProperties); for (Map.Entry entry : map.entrySet()) { - configurator.addGlobalProperty(entry.getKey(), entry.getValue()); + configurator.addGlobalProperty(entry.getKey(), entry.getValue().replace(":",",")); } }