forked from loafle/openapi-generator-original
Fixed code gen issue for multi valued response
This commit is contained in:
parent
d871755e8d
commit
ea01c6a7f9
@ -32,6 +32,7 @@ public class ResourceMethod {
|
|||||||
|
|
||||||
private List<MethodArgument> pathParameters;
|
private List<MethodArgument> pathParameters;
|
||||||
|
|
||||||
|
//set the original response name, this is used in identifying if the respone is single valued or multi valued
|
||||||
private String returnValueFromOperationJson;
|
private String returnValueFromOperationJson;
|
||||||
|
|
||||||
private String returnValue;
|
private String returnValue;
|
||||||
|
@ -310,6 +310,7 @@ public class EndpointOperation {
|
|||||||
else{
|
else{
|
||||||
method.setHasResponseValue(true);
|
method.setHasResponseValue(true);
|
||||||
}
|
}
|
||||||
|
//set the original response name, this is used in identifying if the respone is single valued or multi valued
|
||||||
method.setReturnValueFromOperationJson(responseClass);
|
method.setReturnValueFromOperationJson(responseClass);
|
||||||
method.setReturnValue(dataTypeMapper.getClassType(responseClass, false));
|
method.setReturnValue(dataTypeMapper.getClassType(responseClass, false));
|
||||||
method.setReturnClassName(dataTypeMapper.getGenericType(responseClass));
|
method.setReturnClassName(dataTypeMapper.getGenericType(responseClass));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user