|
@@ -903,7 +903,7 @@ func (g *OpenAPIv3Generator) addPathsToDocumentV3(d *v3.Document, services []*pr
|
|
|
defaultHost := proto.GetExtension(service.Desc.Options(), annotations.E_DefaultHost).(string)
|
|
defaultHost := proto.GetExtension(service.Desc.Options(), annotations.E_DefaultHost).(string)
|
|
|
|
|
|
|
|
op, path2 := g.buildOperationV3(
|
|
op, path2 := g.buildOperationV3(
|
|
|
- d, operationID, service.GoName, comment, defaultHost, path, bodyField, inputMessage, outputMessage)
|
|
|
|
|
|
|
+ d, operationID, d.Info.Title, comment, defaultHost, path, bodyField, inputMessage, outputMessage)
|
|
|
|
|
|
|
|
// Merge any `Operation` annotations with the current
|
|
// Merge any `Operation` annotations with the current
|
|
|
proto.Merge(op, extOperation.(*v3.Operation))
|
|
proto.Merge(op, extOperation.(*v3.Operation))
|
|
@@ -912,8 +912,7 @@ func (g *OpenAPIv3Generator) addPathsToDocumentV3(d *v3.Document, services []*pr
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if annotationsCount > 0 {
|
|
if annotationsCount > 0 {
|
|
|
- comment := g.filterCommentString(service.Comments.Leading)
|
|
|
|
|
- d.Tags = append(d.Tags, &v3.Tag{Name: service.GoName, Description: comment})
|
|
|
|
|
|
|
+ d.Tags = append(d.Tags, &v3.Tag{Name: d.Info.Title, Description: d.Info.Description})
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|