( method: HttpMethod, pathTemplate: string, operation: OperationObject, )
| 416 | // --------------------------------------------------------------------------- |
| 417 | |
| 418 | const deriveOperationId = ( |
| 419 | method: HttpMethod, |
| 420 | pathTemplate: string, |
| 421 | operation: OperationObject, |
| 422 | ): string => |
| 423 | operation.operationId ?? |
| 424 | (`${method}_${pathTemplate.replace(/[^a-zA-Z0-9]+/g, "_")}`.replace(/^_+|_+$/g, "") || |
| 425 | `${method}_operation`); |
| 426 | |
| 427 | const explicitToolPath = (operation: OperationObject): string | undefined => { |
| 428 | const value = (operation as Record<string, unknown>)["x-executor-toolPath"]; |
no test coverage detected