Skip to main content
Glama
validators.ts336 B
import type { JsonObject } from '../../types/attio.js'; export function validateRequiredArrayField( payload: JsonObject, field: string, errorMessage: string ): void { const value = payload[field]; const isValidArray = Array.isArray(value) && value.length > 0; if (!isValidArray) { throw new Error(errorMessage); } }

Latest Blog Posts

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/kesslerio/attio-mcp-server'

If you have feedback or need assistance with the MCP directory API, please join our Discord server