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

Function isPlainObject

packages/opencode/src/provider/transform.ts:1331–1333  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

1329type JsonRecord = Record<string, unknown>
1330
1331function isPlainObject(value: unknown): value is JsonRecord {
1332 return typeof value === "object" && value !== null && !Array.isArray(value)
1333}
1334
1335// Mirrors Codex's Rust JSON schema compatibility lowering for OpenAI tool schemas.
1336function sanitizeOpenAISchema(value: unknown): unknown {

Callers 4

sanitizeOpenAISchemaFunction · 0.70
hasCombinerFunction · 0.70
hasSchemaIntentFunction · 0.70
sanitizeGeminiFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected