Package: effect
Module: SchemaIssue
Represents a schema issue produced when a value matches multiple members of a union that is configured to allow exactly one match (oneOf mode).
When to use
Use when you need to detect ambiguous union matches when oneOf validation is
enabled.
Details
ast is the Union AST node.actual is the raw input value (plain unknown).successes lists the AST nodes of each member that accepted the input."Expected exactly one member to match the input <actual>".See
AnyOf — the opposite: no members matchedSignature
declare class OneOf { constructor(
/**
* The schema that caused the issue.
*/
ast: SchemaAST.Union,
/**
* The input value that caused the issue.
*/
actual: unknown,
/**
* The schemas that were successful.
*/
successes: ReadonlyArray<SchemaAST.AST>
) }
Since v4.0.0