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

Function collectDefinitionCollections

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

Source from the content-addressed store, hash-verified

1224}
1225
1226export function collectDefinitionCollections(
1227 schema: Record<string, unknown>
1228): Required<DefinitionCollections> {
1229 return {
1230 definitions: { ...((schema.definitions ?? {}) as Record<string, JSONSchema7Definition>) },
1231 $defs: { ...((schema.$defs ?? {}) as Record<string, JSONSchema7Definition>) },
1232 };
1233}
1234
1235/** Collect the shared definitions from a schema (handles both `definitions` and `$defs`). */
1236export function collectDefinitions(

Callers 15

extractEventVariantsFunction · 0.85
generateApiTypesCodeFunction · 0.85
generateRpcCodeFunction · 0.85
generateSessionEventsFunction · 0.85
generateRpcFunction · 0.85
extractEventVariantsFunction · 0.85
generateRpcCodeFunction · 0.85
postProcessSchemaFunction · 0.85
collectInternalSymbolsFunction · 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…