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

Function resolveSpecText

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

Source from the content-addressed store, hash-verified

123 * HttpClient; otherwise return it as-is.
124 */
125export const resolveSpecText = (input: string, credentials?: SpecFetchCredentials) =>
126 input.startsWith("http://") || input.startsWith("https://")
127 ? fetchSpecText(input, credentials)
128 : Effect.succeed(input);
129
130/**
131 * 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