Reverted the change and moved into wordnik specific branch

This commit is contained in:
rpidikiti 2012-03-05 12:57:54 -08:00
parent f2b09faf66
commit 006f7d1589

View File

@ -131,13 +131,24 @@ public class Endpoint {
if (modelField.getParamType().equalsIgnoreCase(EndpointOperation.PARAM_TYPE_BODY) ){
isParamSetAvailable = false;
for(Model model : resource.getModels()){
if(dataTypeMapper.isPrimitiveType(modelField.getDataType())){
isParamSetAvailable = true;
break;
}
if(model.getName().equalsIgnoreCase(modelField.getDataType())){
isParamSetAvailable = true;
break;
if(modelField.getValueTypeInternal() != null) {
if(dataTypeMapper.isPrimitiveType(modelField.getValueTypeInternal())){
isParamSetAvailable = true;
break;
}
if(model.getName().equalsIgnoreCase(modelField.getValueTypeInternal())){
isParamSetAvailable = true;
break;
}
}else{
if(dataTypeMapper.isPrimitiveType(modelField.getDataType())){
isParamSetAvailable = true;
break;
}
if(model.getName().equalsIgnoreCase(modelField.getDataType())){
isParamSetAvailable = true;
break;
}
}
}
if(!isParamSetAvailable){