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

Function numericType

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

Source from the content-addressed store, hash-verified

167 schema.type === "string" || (Array.isArray(schema.type) && schema.type.includes("string"));
168
169const numericType = (schema: Record<string, unknown>): boolean =>
170 schema.type === "integer" ||
171 schema.type === "number" ||
172 (Array.isArray(schema.type) &&
173 (schema.type.includes("integer") || schema.type.includes("number")));
174
175const normalizedMediaType = (mediaType: string): string =>
176 mediaType.split(";")[0]?.trim().toLowerCase() ?? "";

Callers 1

detectFileHintFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected