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

Function getRefName

packages/react/src/components/schema-explorer.tsx:61–61  ·  view source on GitHub ↗
(ref: string)

Source from the content-addressed store, hash-verified

59};
60
61const getRefName = (ref: string): string | undefined => ref.match(/^#\/\$defs\/(.+)$/)?.[1];
62
63/**
64 * Fully resolve a schema, following $ref and unwrapping single-variant

Callers 1

getTypeLabelFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected