| 327 | } |
| 328 | |
| 329 | func (p OpenApiParser) parsePath(definitionName string, document openapi3.T, baseUri url.URL, route string, pathItem openapi3.PathItem) []Operation { |
| 330 | operations := []Operation{} |
| 331 | for method := range pathItem.Operations() { |
| 332 | operation := pathItem.GetOperation(method) |
| 333 | operations = append(operations, p.parseOperation(definitionName, document, method, baseUri, route, *operation, pathItem.Parameters)) |
| 334 | } |
| 335 | return operations |
| 336 | } |
| 337 | |
| 338 | func (p OpenApiParser) parse(definitionName string, document openapi3.T) (*Definition, error) { |
| 339 | uri, err := p.getUri(document) |