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

Function goPrimitiveSchemaTypeName

scripts/codegen/go.ts:2462–2471  ·  view source on GitHub ↗
(schema: JSONSchema7, ctx: GoCodegenCtx)

Source from the content-addressed store, hash-verified

2460}
2461
2462function goPrimitiveSchemaTypeName(schema: JSONSchema7, ctx: GoCodegenCtx): string | undefined {
2463 const resolved = resolveSchema(schema, ctx.definitions) ?? schema;
2464 switch (resolved.type) {
2465 case "boolean": return "Boolean";
2466 case "integer": return "Integer";
2467 case "number": return "Number";
2468 case "string": return "String";
2469 default: return undefined;
2470 }
2471}
2472
2473function goPrimitiveSchemaGoType(schema: JSONSchema7, ctx: GoCodegenCtx): string | undefined {
2474 const resolved = resolveSchema(schema, ctx.definitions) ?? schema;

Callers 1

Calls 1

resolveSchemaFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…