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

Function rewriteRef

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

Source from the content-addressed store, hash-verified

1408 if (sharedNames.size === 0) return cloneSchemaForCodegen(schema);
1409
1410 const rewriteRef = (ref: string): string => {
1411 const localRef = parseLocalDefinitionRef(ref);
1412 return localRef && sharedNames.has(localRef) ? `${externalSchemaFile}#/definitions/${localRef}` : ref;
1413 };
1414
1415 const rewrite = (value: unknown): unknown => {
1416 if (Array.isArray(value)) {

Callers 1

rewriteFunction · 0.85

Calls 1

parseLocalDefinitionRefFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…