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

Function isConstOrEnumSchema

scripts/codegen/utils.ts:1209–1211  ·  view source on GitHub ↗
(schema: JSONSchema7)

Source from the content-addressed store, hash-verified

1207}
1208
1209function isConstOrEnumSchema(schema: JSONSchema7): boolean {
1210 return "const" in schema || (Array.isArray(schema.enum) && schema.enum.length > 0);
1211}
1212
1213export function hasSchemaPayload(schema: JSONSchema7 | null | undefined): boolean {
1214 if (!schema) return false;

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…