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

Function parseExternalSchemaRef

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

Source from the content-addressed store, hash-verified

990}
991
992export function parseExternalSchemaRef(ref: string): { schemaFile: string; definitionName: string } | undefined {
993 const match = ref.match(/^([^#]+)#\/(?:definitions|\$defs)\/(.+)$/);
994 return match ? { schemaFile: match[1], definitionName: match[2] } : undefined;
995}
996
997export function collectExternalSchemaRefNames(schema: unknown): Map<string, Set<string>> {
998 const refs = new Map<string, Set<string>>();

Callers 15

rustRefTypeNameFunction · 0.85
rustResultTypeNameFunction · 0.85
recordExternalTypeRefFunction · 0.85
rewriteFunction · 0.85
resultTypeNameFunction · 0.85
paramsTypeNameFunction · 0.85
generateRpcFunction · 0.85
visitFunction · 0.85
rewriteInlinedRefsFunction · 0.85
rewriteFunction · 0.85
goRefTypeNameFunction · 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…