effect-io-ai

Package: effect
Module: SchemaIssue

SchemaIssue.Issue

The root discriminated union of all validation error nodes.

When to use

Use when typing the error channel in Effect<A, Issue, R> results from schema parsing, or when writing custom formatters or issue-tree walkers.

Details

Every node has a _tag field for pattern-matching. The union includes both terminal Leaf types and composite types that wrap inner issues: Filter, Encoding, Pointer, Composite, AnyOf. All Issue instances have a toString() that delegates to the default formatter, so String(issue) produces a human-readable message.

See

Signature

type Issue = | Leaf
  // composite
  | Filter
  | Encoding
  | Pointer
  | Composite
  | AnyOf

Source

Since v4.0.0