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

Function loadSchemaJson

scripts/codegen/utils.ts:186–189  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

184
185/** Load a JSON schema file and normalize GitHub brand casing in titles, refs, and definition keys. */
186export async function loadSchemaJson<T>(filePath: string): Promise<T> {
187 const parsed = JSON.parse(await fs.readFile(filePath, "utf-8")) as T;
188 return normalizeSchemaBrandCasing(parsed);
189}
190
191// ── Schema processing ───────────────────────────────────────────────────────
192

Callers 12

generateSessionEventsFunction · 0.85
generateRpcFunction · 0.85
generateFunction · 0.85
generateSessionEventsFunction · 0.85
generateRpcFunction · 0.85
generateFunction · 0.85
generateSessionEventsFunction · 0.85
generateRpcFunction · 0.85
generateFunction · 0.85
generateSessionEventsFunction · 0.85
generateRpcFunction · 0.85
generateFunction · 0.85

Calls 3

parseMethod · 0.80
readFileMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…