( raw: UnknownRecord, pathItem: UnknownRecord, operation: UnknownRecord, )
| 149 | } |
| 150 | |
| 151 | function getServers( |
| 152 | raw: UnknownRecord, |
| 153 | pathItem: UnknownRecord, |
| 154 | operation: UnknownRecord, |
| 155 | ): UnknownRecord[] { |
| 156 | const operationServers = asArray(operation.servers).filter(isRecord) |
| 157 | if (operationServers.length > 0) |
| 158 | return operationServers |
| 159 | |
| 160 | const pathServers = asArray(pathItem.servers).filter(isRecord) |
| 161 | if (pathServers.length > 0) |
| 162 | return pathServers |
| 163 | |
| 164 | return asArray(raw.servers).filter(isRecord) |
| 165 | } |
| 166 | |
| 167 | function getServerUrl( |
| 168 | raw: UnknownRecord, |
no test coverage detected