mirror of
https://github.com/valitydev/openapi-generator.git
synced 2024-11-07 02:55:19 +00:00
Reverted the change and moved into wordnik specific branch
This commit is contained in:
parent
f2b09faf66
commit
006f7d1589
@ -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){
|
||||
|
Loading…
Reference in New Issue
Block a user