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

Function normalizeSchemaBrandCasing

java/scripts/codegen/java.ts:50–53  ·  view source on GitHub ↗

* Recursively normalize GitHub brand casing within a parsed JSON schema: * definition-map keys, `$ref` pointers (definition-name segment only), and * documentation strings. Wire-level values (`const`, `enum`, `default`, ...) are * left untouched. Mutates in place and returns the schema.

(schema: T)

Source from the content-addressed store, hash-verified

48 * left untouched. Mutates in place and returns the schema.
49 */
50function normalizeSchemaBrandCasing<T>(schema: T): T {
51 normalizeBrandCasingNode(schema);
52 return schema;
53}
54
55function normalizeBrandCasingNode(node: unknown): void {
56 if (Array.isArray(node)) {

Callers 3

generateSessionEventsFunction · 0.70
generateRpcTypesFunction · 0.70
generateRpcWrappersFunction · 0.70

Calls 1

normalizeBrandCasingNodeFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…