( paths: Record<string, unknown>, path: string, method: string, )
| 237 | } |
| 238 | |
| 239 | function getOperation( |
| 240 | paths: Record<string, unknown>, |
| 241 | path: string, |
| 242 | method: string, |
| 243 | ): Record<string, unknown> | undefined { |
| 244 | const pathItem = asRecord(paths[path]); |
| 245 | if (pathItem === undefined) return undefined; |
| 246 | return asRecord(pathItem[method]); |
| 247 | } |
| 248 | |
| 249 | function setResponse( |
| 250 | operation: Record<string, unknown>, |
no test coverage detected