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

Function nullableType

packages/plugins/openapi/src/sdk/extract.ts:191–192  ·  view source on GitHub ↗
(schema: Record<string, unknown>)

Source from the content-addressed store, hash-verified

189 schema.type === "array" || (Array.isArray(schema.type) && schema.type.includes("array"));
190
191const nullableType = (schema: Record<string, unknown>): boolean =>
192 Array.isArray(schema.type) && schema.type.includes("null");
193
194const isMultipartMediaType = (mediaType: string): boolean =>
195 normalizedMediaType(mediaType) === "multipart/form-data";

Callers 1

toolFileSchemaForFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected