forked from loafle/openapi-generator-original
Reintroduce objc dictionary fix to updated develop_2.0 branch
This commit is contained in:
parent
37303745df
commit
c82b31aa61
@ -554,14 +554,18 @@ public class DefaultCodegen {
|
|||||||
property.isPrimitiveType = true;
|
property.isPrimitiveType = true;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
|
setNonArrayMapProperty(property, type);
|
||||||
|
}
|
||||||
|
return property;
|
||||||
|
}
|
||||||
|
|
||||||
|
protected void setNonArrayMapProperty(CodegenProperty property, String type) {
|
||||||
property.isNotContainer = true;
|
property.isNotContainer = true;
|
||||||
if(languageSpecificPrimitives().contains(type))
|
if(languageSpecificPrimitives().contains(type))
|
||||||
property.isPrimitiveType = true;
|
property.isPrimitiveType = true;
|
||||||
else
|
else
|
||||||
property.complexType = property.baseType;
|
property.complexType = property.baseType;
|
||||||
}
|
}
|
||||||
return property;
|
|
||||||
}
|
|
||||||
|
|
||||||
private Response findMethodResponse(Map<String, Response> responses) {
|
private Response findMethodResponse(Map<String, Response> responses) {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user