Skip to content
Open
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion cmd/protoc-gen-openapi/generator/generator.go
Original file line number Diff line number Diff line change
Expand Up @@ -687,6 +687,11 @@ func (g *OpenAPIv3Generator) addPathsToDocumentV3(d *v3.Document, services []*pr
for _, service := range services {
annotationsCount := 0

tagName := service.GoName
if g.conf.FQSchemaNaming != nil && *g.conf.FQSchemaNaming {
tagName = string(service.Desc.FullName())
}

for _, method := range service.Methods {
comment := g.filterCommentString(method.Comments.Leading)
inputMessage := method.Input
Expand Down Expand Up @@ -751,7 +756,7 @@ func (g *OpenAPIv3Generator) addPathsToDocumentV3(d *v3.Document, services []*pr

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: tagName, Description: comment})
}
}
}
Expand Down