Skip to content

Graphorin API reference v0.7.0


Graphorin API reference / @graphorin/tools / / looksLikeJsonSchema

Function: looksLikeJsonSchema()

ts
function looksLikeJsonSchema(value): value is JsonSchemaRecord;

Defined in: packages/tools/src/schema/to-json-schema.ts:777

true when value is plain JSON-Schema-shaped data: an object with no validator methods that either is empty or carries at least one JSON Schema keyword.

Parameters

ParameterType
valueunknown

Returns

value is JsonSchemaRecord