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

Function refToName

scripts/codegen/utils.ts:835–839  ·  view source on GitHub ↗
(ref: unknown)

Source from the content-addressed store, hash-verified

833 if (internalTypeNames.size === 0) return schema;
834
835 const refToName = (ref: unknown): string | undefined => {
836 if (typeof ref !== "string") return undefined;
837 const m = ref.match(/^#\/(?:definitions|\$defs)\/([^/]+)$/);
838 return m ? m[1] : undefined;
839 };
840
841 /** Returns true when a property's *direct* type carrier is an internal definition. */
842 const propertyReferencesInternal = (propSchema: JSONSchema7): boolean => {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…