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

Function resolveSpecText

packages/plugins/openapi/src/sdk/parse.ts:68–71  ·  view source on GitHub ↗
(input: string, credentials?: SpecFetchCredentials)

Source from the content-addressed store, hash-verified

66 * HttpClient; otherwise return it as-is.
67 */
68export const resolveSpecText = (input: string, credentials?: SpecFetchCredentials) =>
69 input.startsWith("http://") || input.startsWith("https://")
70 ? fetchSpecText(input, credentials)
71 : Effect.succeed(input);
72
73/**
74 * Parse an OpenAPI document from spec text and validate it's OpenAPI 3.x.

Callers 4

resolveSpecForInputFunction · 0.90
plugin.tsFile · 0.90
preview.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected