MCPcopy Create free account
hub / github.com/UiPath/uipathcli / getCategoryText

Method getCategoryText

parser/openapi_parser.go:71–80  ·  view source on GitHub ↗
(definitionName string, name string, tag *openapi3.Tag)

Source from the content-addressed store, hash-verified

69}
70
71func (p OpenApiParser) getCategoryText(definitionName string, name string, tag *openapi3.Tag) (string, string) {
72 result := LookupDescription(definitionName + " " + name)
73 if result != nil {
74 return result.Summary, result.Description
75 }
76 if tag != nil {
77 return p.getSummary(tag.Extensions), tag.Description
78 }
79 return "", ""
80}
81
82func (p OpenApiParser) getUri(document openapi3.T) (*url.URL, error) {
83 server := DefaultServerBaseUrl

Callers 1

getCategoryMethod · 0.95

Calls 2

getSummaryMethod · 0.95
LookupDescriptionFunction · 0.85

Tested by

no test coverage detected