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:
Gokul Raj S
2021-01-12 08:06:03 +05:30
committed by GitHub
parent ed9133e77f
commit ce3e0c7d68

View File

@@ -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(":",","));
}
}