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

Function parseYaml

packages/plugins/openapi/src/sdk/split.ts:245–246  ·  view source on GitHub ↗
(text: string)

Source from the content-addressed store, hash-verified

243 indent === 0 ? fragment : fragment.replace(new RegExp(`^ {1,${indent}}`, "gm"), "");
244
245const parseYaml = (text: string): unknown =>
246 parseYamlDocument(text, { json: true, schema: JSON_SCHEMA });
247
248/**
249 * Parse a single indent-N entry range (a path-item or a schema) in isolation.

Callers 3

parseEntryFunction · 0.85
parseHeadFunction · 0.85
parseSmallComponentsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected