MCPcopy Create free account
hub / github.com/anomalyco/opencode / hasCombiner

Function hasCombiner

packages/opencode/src/provider/transform.ts:1465–1466  ·  view source on GitHub ↗
(node: unknown)

Source from the content-addressed store, hash-verified

1463 const isPlainObject = (node: unknown): node is Record<string, any> =>
1464 typeof node === "object" && node !== null && !Array.isArray(node)
1465 const hasCombiner = (node: unknown) =>
1466 isPlainObject(node) && (Array.isArray(node.anyOf) || Array.isArray(node.oneOf) || Array.isArray(node.allOf))
1467 const hasSchemaIntent = (node: unknown) => {
1468 if (!isPlainObject(node)) return false
1469 if (hasCombiner(node)) return true

Callers 2

hasSchemaIntentFunction · 0.70
sanitizeGeminiFunction · 0.70

Calls 1

isPlainObjectFunction · 0.70

Tested by

no test coverage detected