mirror of
https://github.com/OpenAPITools/openapi-generator.git
synced 2026-03-18 19:09:19 +00:00
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:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user