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

Function compileOpenApiSpec

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

Source from the content-addressed store, hash-verified

255 });
256
257export const compileOpenApiSpec = (
258 specText: string,
259): Effect.Effect<CompiledOpenApiSpec, OpenApiParseError | OpenApiExtractionError> =>
260 Effect.gen(function* () {
261 const doc = yield* parse(specText);
262 return yield* compileOpenApiDocument(doc);
263 });
264
265/**
266 * 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