MCPcopy Index your code
hub / github.com/callstack/agent-device / enumSchema

Function enumSchema

src/commands/command-input.ts:87–89  ·  view source on GitHub ↗
(values: readonly string[], description?: string)

Source from the content-addressed store, hash-verified

85}
86
87function enumSchema(values: readonly string[], description?: string): JsonSchema {
88 return { type: 'string', enum: values, ...(description ? { description } : {}) };
89}
90
91export function stringSchema(description?: string): JsonSchema {
92 return { type: 'string', ...(description ? { description } : {}) };

Callers 1

enumFieldFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected