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

Function isJsonSchema

packages/opencode/src/tool/json-schema.ts:94–96  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

92}
93
94function isJsonSchema(value: unknown): value is JSONSchema7 {
95 return typeof value === "boolean" || isRecord(value)
96}
97
98function isNonFiniteNumber(value: unknown) {
99 return value === "NaN" || value === "Infinity" || value === "-Infinity"

Callers 1

fromSchemaFunction · 0.85

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected