( specText: string, )
| 241 | }); |
| 242 | |
| 243 | export const compileOpenApiSpec = ( |
| 244 | specText: string, |
| 245 | ): Effect.Effect<CompiledOpenApiSpec, OpenApiParseError | OpenApiExtractionError> => |
| 246 | Effect.gen(function* () { |
| 247 | const doc = yield* parse(specText); |
| 248 | return yield* compileOpenApiDocument(doc); |
| 249 | }); |
| 250 | |
| 251 | /** |
| 252 | * Bounded reuse of compiled specs for the serve-side fallback paths (health |
no test coverage detected