( operationId: string, method: string, pathTemplate: string, group: string, )
| 109 | }; |
| 110 | |
| 111 | const deriveLeaf = ( |
| 112 | operationId: string, |
| 113 | method: string, |
| 114 | pathTemplate: string, |
| 115 | group: string, |
| 116 | ): string => { |
| 117 | const preferred = toCamelCase(deriveLeafSeed(operationId, group)); |
| 118 | if (preferred.length > 0 && preferred !== group) return preferred; |
| 119 | return toCamelCase(fallbackLeafSeed(method, pathTemplate, group)); |
| 120 | }; |
| 121 | |
| 122 | // --------------------------------------------------------------------------- |
| 123 | // Public types |
no test coverage detected