(definitionName string, name string, tag *openapi3.Tag)
| 69 | } |
| 70 | |
| 71 | func (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 | |
| 82 | func (p OpenApiParser) getUri(document openapi3.T) (*url.URL, error) { |
| 83 | server := DefaultServerBaseUrl |
no test coverage detected