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

Function parseRefName

packages/core/sdk/src/schema-refs.ts:18–18  ·  view source on GitHub ↗
(ref: string)

Source from the content-addressed store, hash-verified

16
17/** Extract the definition name from a standard $ref pointer. */
18const parseRefName = (ref: string): string | undefined => ref.match(REF_PATTERN)?.[1];
19
20/**
21 * Recursively rewrite `#/definitions/<name>` pointers to `#/$defs/<name>`.

Callers 2

normalizeRefsFunction · 0.85
collectRefsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected