Reintroduce objc dictionary fix to updated develop_2.0 branch

This commit is contained in:
gandrianakis 2015-03-19 11:07:54 +02:00
parent 37303745df
commit c82b31aa61

View File

@ -554,14 +554,18 @@ public class DefaultCodegen {
property.isPrimitiveType = true;
}
else {
property.isNotContainer = true;
setNonArrayMapProperty(property, type);
}
return property;
}
protected void setNonArrayMapProperty(CodegenProperty property, String type) {
property.isNotContainer = true;
if(languageSpecificPrimitives().contains(type))
property.isPrimitiveType = true;
else
property.complexType = property.baseType;
}
return property;
}
private Response findMethodResponse(Map<String, Response> responses) {