MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / compileOpenApiSpec

Function compileOpenApiSpec

packages/plugins/openapi/src/sdk/backing.ts:256–262  ·  view source on GitHub ↗
(
  specText: string,
)

Source from the content-addressed store, hash-verified

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

Callers 4

addSpecFunction · 0.90
updateSpecFunction · 0.90
presets.test.tsFile · 0.85
compileOpenApiSpecCachedFunction · 0.85

Calls 1

compileOpenApiDocumentFunction · 0.85

Tested by

no test coverage detected