( method: HttpMethod, pathTemplate: string, operation: OperationObject, )
| 492 | // --------------------------------------------------------------------------- |
| 493 | |
| 494 | const deriveOperationId = ( |
| 495 | method: HttpMethod, |
| 496 | pathTemplate: string, |
| 497 | operation: OperationObject, |
| 498 | ): string => |
| 499 | operation.operationId ?? |
| 500 | (`${method}_${pathTemplate.replace(/[^a-zA-Z0-9]+/g, "_")}`.replace(/^_+|_+$/g, "") || |
| 501 | `${method}_operation`); |
| 502 | |
| 503 | const explicitToolPath = (operation: OperationObject): string | undefined => { |
| 504 | const value = (operation as Record<string, unknown>)["x-executor-toolPath"]; |
no test coverage detected