merge master #30

Merged
vtolstov merged 6 commits from master into v3 2022-02-02 02:38:04 +03:00
Showing only changes of commit f6cfb2de1e - Show all commits

View File

@ -87,7 +87,9 @@ func (g *openapiv3Generator) buildDocumentV3(plugin *protogen.Plugin) *v3.Docume
if doc.Openapi != "" {
d.Openapi = doc.Openapi
}
d.Info = proto.Clone(doc.Info).(*v3.Info)
if doc.Info != nil {
d.Info = proto.Clone(doc.Info).(*v3.Info)
}
d.Servers = append(d.Servers, doc.Servers...)
}