Package: effect
Module: SchemaIssue
Represents a schema issue produced when a value does not match any member of a union schema.
When to use
Use when you need to inspect which union members were attempted and why each failed.
Details
ast is the Union AST node.actual is the raw input value (plain unknown).issues contains per-member failures. When empty, the formatter falls
back to the union’s expected annotation.See
OneOf — the opposite: too many members matchedComposite — groups multiple issues under a non-union schemaSignature
declare class AnyOf { constructor(
/**
* The schema that caused the issue.
*/
ast: SchemaAST.Union,
/**
* The input value that caused the issue.
*/
actual: unknown,
/**
* The issues that occurred.
*/
issues: ReadonlyArray<Issue>
) }
Since v4.0.0