MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / isRecord

Function isRecord

packages/plugins/openapi/src/sdk/extract.ts:163–164  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

161// ---------------------------------------------------------------------------
162
163const isRecord = (value: unknown): value is Record<string, unknown> =>
164 typeof value === "object" && value !== null && !Array.isArray(value);
165
166const stringType = (schema: Record<string, unknown>): boolean =>
167 schema.type === "string" || (Array.isArray(schema.type) && schema.type.includes("string"));

Callers 3

multipartFilePropertyFunction · 0.70
multipartFileInputSchemaFunction · 0.70
detectFileHintFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected