operationToolName returns a tool name derived from the operationId or the method+path.
(path, method string, op *v3.Operation)
| 267 | |
| 268 | // operationToolName returns a tool name derived from the operationId or the method+path. |
| 269 | func operationToolName(path, method string, op *v3.Operation) string { |
| 270 | if op.OperationId != "" { |
| 271 | return sanitizeToolName(op.OperationId) |
| 272 | } |
| 273 | |
| 274 | return sanitizeToolName(strings.ToLower(method) + "_" + path) |
| 275 | } |
| 276 | |
| 277 | // operationDescription returns a human-readable description for the operation. |
| 278 | func operationDescription(path, method string, op *v3.Operation) string { |
no test coverage detected