Function
hasOperation
(
paths: Record<string, Record<string, OpenApiOperationObject>>,
operationId: string,
)
Source from the content-addressed store, hash-verified
| 937 | }); |
| 938 | |
| 939 | const hasOperation = ( |
| 940 | paths: Record<string, Record<string, OpenApiOperationObject>>, |
| 941 | operationId: string, |
| 942 | ): boolean => |
| 943 | Object.values(paths).some((pathItem) => |
| 944 | Object.values(pathItem).some((operation) => operation.operationId === operationId), |
| 945 | ); |
| 946 | |
| 947 | export const convertGoogleDiscoveryToOpenApi = Effect.fn("OpenApi.convertGoogleDiscovery")( |
| 948 | function* (input: { readonly discoveryUrl: string; readonly documentText: string }) { |
Tested by
no test coverage detected