MCPcopy Index your code
hub / github.com/github/copilot-sdk / parseLocalDefinitionRef

Function parseLocalDefinitionRef

scripts/codegen/utils.ts:1621–1624  ·  view source on GitHub ↗
(ref: string)

Source from the content-addressed store, hash-verified

1619}
1620
1621function parseLocalDefinitionRef(ref: string): string | undefined {
1622 const match = ref.match(/^#\/(?:definitions|\$defs)\/(.+)$/);
1623 return match?.[1];
1624}
1625
1626export function withSharedDefinitions<T extends JSONSchema7>(
1627 schema: T,

Callers 5

visitSchemaFunction · 0.85
rewriteRefFunction · 0.85
rewriteInlinedRefsFunction · 0.85
visitFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…