Skip to content

TypeFailure

Defined in: failure.ts:49

Wrong type at a path.

  • BaseFailure

readonly actual: string

Defined in: failure.ts:56

Actual type found (e.g., ‘undefined’, ‘object’, ‘null’)


readonly expected: string

Defined in: failure.ts:54

Expected type (e.g., ‘string’, ‘number’, ‘array’)


readonly kind: "type"

Defined in: failure.ts:50


readonly message: string

Defined in: failure.ts:32

Human-readable error message

BaseFailure.message


readonly node: NodeId

Defined in: failure.ts:30

The AST node where the failure occurred

BaseFailure.node


readonly path: JsonPath

Defined in: failure.ts:52

Path where the type mismatch occurred