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

Function collectDefinitions

scripts/codegen/utils.ts:1236–1241  ·  view source on GitHub ↗
(
    schema: Record<string, unknown>
)

Source from the content-addressed store, hash-verified

1234
1235/** Collect the shared definitions from a schema (handles both `definitions` and `$defs`). */
1236export function collectDefinitions(
1237 schema: Record<string, unknown>
1238): Record<string, JSONSchema7Definition> {
1239 const { definitions, $defs } = collectDefinitionCollections(schema);
1240 return { ...$defs, ...definitions };
1241}
1242
1243export function findSharedSchemaDefinitions(
1244 sourceSchema: Record<string, unknown>,

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…