mirror of
https://github.com/jlengrand/openapi-generator.git
synced 2026-05-18 15:54:42 +00:00
Swagr Codegen: Updates to generate comments properly for return type of void and for allowed values, other minor updates
This commit is contained in:
@@ -299,7 +299,6 @@ public class EndpointOperation {
|
||||
method.setMethodType(this.getHttpMethod());
|
||||
|
||||
//get return value
|
||||
//private String returnValue;
|
||||
List<Response> response = this.getResponse();
|
||||
|
||||
method.setReturnValue(config.getDataTypeMapper().getReturnValueType(response.get(0).getValueType()));
|
||||
|
||||
@@ -99,8 +99,10 @@ public class ModelField {
|
||||
for(String allowedValue: this.allowableValues){
|
||||
result += (allowedValue +",");
|
||||
}
|
||||
|
||||
return result.substring(0, result.length());
|
||||
if(result.length() == 0)
|
||||
return null;
|
||||
else
|
||||
return result.substring(0, result.length() - 1);
|
||||
}
|
||||
|
||||
public void setAllowedValues(String csvAlowedValue) {
|
||||
|
||||
Reference in New Issue
Block a user