MCPcopy Index your code
hub / github.com/getsentry/XcodeBuildMCP / assertSchemaRef

Function assertSchemaRef

src/core/structured-output-schema.ts:48–55  ·  view source on GitHub ↗
(ref: StructuredOutputSchemaRef)

Source from the content-addressed store, hash-verified

46}
47
48function assertSchemaRef(ref: StructuredOutputSchemaRef): void {
49 if (!SCHEMA_PATTERN.test(ref.schema)) {
50 throw new Error(`Invalid structured output schema name: ${ref.schema}`);
51 }
52 if (!SCHEMA_VERSION_PATTERN.test(ref.version)) {
53 throw new Error(`Invalid structured output schema version: ${ref.version}`);
54 }
55}
56
57function readJsonObject(filePath: string, label: string): JsonObject {
58 let raw: string;

Callers 1

getMcpOutputSchemaFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected