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 models
This commit is contained in:
@@ -96,8 +96,10 @@ public class ModelField {
|
||||
|
||||
public String getAllowedValuesString() {
|
||||
String result = "";
|
||||
for(String allowedValue: this.allowableValues){
|
||||
result += (allowedValue +",");
|
||||
if (this.allowableValues != null) {
|
||||
for(String allowedValue: this.allowableValues){
|
||||
result += (allowedValue +",");
|
||||
}
|
||||
}
|
||||
if(result.length() == 0)
|
||||
return null;
|
||||
|
||||
Reference in New Issue
Block a user