( specText: string, )
| 252 | }); |
| 253 | |
| 254 | export const compileOpenApiSpec = ( |
| 255 | specText: string, |
| 256 | ): Effect.Effect<CompiledOpenApiSpec, OpenApiParseError | OpenApiExtractionError> => |
| 257 | Effect.gen(function* () { |
| 258 | const doc = yield* parse(specText); |
| 259 | return yield* compileOpenApiDocument(doc); |
| 260 | }); |
| 261 | |
| 262 | /** |
| 263 | * Bounded reuse of compiled specs for the serve-side fallback paths (health |
no test coverage detected