MCPcopy Create free account
hub / github.com/middleapi/orpc / isFileSchema

Function isFileSchema

packages/openapi/src/schema-utils.ts:8–10  ·  view source on GitHub ↗
(schema: JSONSchema)

Source from the content-addressed store, hash-verified

6 *@internal
7 */
8export function isFileSchema(schema: JSONSchema): schema is FileSchema {
9 return isObject(schema) && schema.type === 'string' && typeof schema.contentMediaType === 'string'
10}
11
12/**
13 * @internal

Callers 2

toOpenAPIContentFunction · 0.90

Calls 1

isObjectFunction · 0.90

Tested by

no test coverage detected