Fix go readme, remove resty install (#280)

* fix go readme, remove resty install

* fix default to null in go petstore doc
This commit is contained in:
William Cheng
2018-05-01 12:02:55 +08:00
committed by GitHub
parent 4bc99b9da8
commit acb63fd5e8
36 changed files with 107 additions and 114 deletions

View File

@@ -546,4 +546,13 @@ public abstract class AbstractGoCodegen extends DefaultCodegen implements Codege
public void setWithXml(boolean withXml) {
this.withXml = withXml;
}
@Override
public String toDefaultValue(Schema schema) {
if (schema.getDefault() != null) {
return schema.getDefault().toString();
} else {
return null;
}
}
}