MCPcopy Create free account
hub / github.com/callstack/agent-device / fieldProperties

Function fieldProperties

src/commands/command-input.ts:540–542  ·  view source on GitHub ↗
(fields: CommandFieldMap)

Source from the content-addressed store, hash-verified

538}
539
540function fieldProperties(fields: CommandFieldMap): Record<string, JsonSchema> {
541 return Object.fromEntries(Object.entries(fields).map(([key, field]) => [key, field.schema]));
542}
543
544function requiredFieldNames(fields: CommandFieldMap): string[] {
545 return Object.entries(fields).flatMap(([key, field]) => (field.required ? [key] : []));

Callers 1

fieldsInputSchemaFunction · 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…