forked from loafle/openapi-generator-original
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
This commit is contained in:
@@ -51,7 +51,7 @@ public final class CodegenConfiguratorUtils {
|
||||
public static void applyGlobalPropertiesKvp(String globalProperties, CodegenConfigurator configurator) {
|
||||
final Map<String, String> map = createMapFromKeyValuePairs(globalProperties);
|
||||
for (Map.Entry<String, String> entry : map.entrySet()) {
|
||||
configurator.addGlobalProperty(entry.getKey(), entry.getValue());
|
||||
configurator.addGlobalProperty(entry.getKey(), entry.getValue().replace(":",","));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user