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

Function canFlattenGoObjectUnion

scripts/codegen/go.ts:2227–2229  ·  view source on GitHub ↗
(members: JSONSchema7[], ctx: GoCodegenCtx)

Source from the content-addressed store, hash-verified

2225}
2226
2227function canFlattenGoObjectUnion(members: JSONSchema7[], ctx: GoCodegenCtx): boolean {
2228 return members.length > 0 && members.every((member) => goObjectUnionMemberSchema(member, ctx) !== undefined);
2229}
2230
2231function goStringEnumValues(schema: JSONSchema7, ctx: GoCodegenCtx): string[] | undefined {
2232 const resolved = resolveSchema(schema, ctx.definitions) ?? schema;

Callers 2

resolveGoPropertyTypeFunction · 0.85
planGoUnionFunction · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…