MCPcopy Create free account
hub / github.com/getsentry/XcodeBuildMCP / getCommonDefinitions

Function getCommonDefinitions

src/core/structured-output-schema.ts:130–136  ·  view source on GitHub ↗
(commonSchema: JsonObject)

Source from the content-addressed store, hash-verified

128}
129
130function getCommonDefinitions(commonSchema: JsonObject): JsonObject {
131 const defs = commonSchema.$defs;
132 if (!isRecord(defs)) {
133 throw new Error(`${COMMON_DEFS_ID} must declare a $defs object.`);
134 }
135 return defs;
136}
137
138function mergeDefinition(targetDefs: JsonObject, name: string, definition: unknown): void {
139 const existing = targetDefs[name];

Callers 1

bundleSchemaFunction · 0.85

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected