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

Function isStringEnumDefinition

scripts/codegen/go.ts:174–176  ·  view source on GitHub ↗
(definition: JSONSchema7)

Source from the content-addressed store, hash-verified

172}
173
174function isStringEnumDefinition(definition: JSONSchema7): definition is JSONSchema7 & { enum: string[] } {
175 return Array.isArray(definition.enum) && definition.enum.every((value) => typeof value === "string");
176}
177
178function pushGoComment(lines: string[], text: string, indent = "", wrap = true): void {
179 lines.push(...goCommentLines(text, indent, wrap));

Callers 3

goStringEnumValuesFunction · 0.85
emitGoRpcDefinitionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…