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

Function normalizeDefs

scripts/codegen/utils.ts:542–550  ·  view source on GitHub ↗
(defs: Record<string, JSONSchema7Definition> | undefined)

Source from the content-addressed store, hash-verified

540 }
541
542 function normalizeDefs(defs: Record<string, JSONSchema7Definition> | undefined): Record<string, JSONSchema7Definition> | undefined {
543 if (!defs) return undefined;
544 return Object.fromEntries(
545 Object.entries(defs).map(([key, value]) => [
546 key,
547 typeof value === "object" && value !== null ? normalizeNullableRequiredRefs(value as JSONSchema7) : value,
548 ])
549 );
550 }
551
552 return {
553 ...schema,

Callers 1

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…