Merge branches 'feature/integration-test' and 'master' of https://github.com/Vrolijkx/swagger-codegen

This commit is contained in:
Kristof Vrolijkx
2016-05-16 20:57:40 +02:00
5 changed files with 14 additions and 6 deletions

View File

@@ -2514,7 +2514,7 @@ public class DefaultCodegen {
}
}
private void addImport(CodegenModel m, String type) {
protected void addImport(CodegenModel m, String type) {
if (type != null && needToImport(type)) {
m.imports.add(type);
}

View File

@@ -48,6 +48,7 @@ public class TypeScriptAngular2ClientCodegen extends AbstractTypeScriptClientCod
@Override
protected void addAdditionPropertiesToCodeGenModel(CodegenModel codegenModel, ModelImpl swaggerModel) {
codegenModel.additionalPropertiesType = getSwaggerType(swaggerModel.getAdditionalProperties());
addImport(codegenModel, codegenModel.additionalPropertiesType);
}
@Override