effect-io-ai

Package: effect
Module: SchemaIssue

SchemaIssue.UnexpectedKey

Represents a schema issue produced when an input object or tuple contains a key/index not declared by the schema.

When to use

Use when you need to detect excess properties during strict struct/tuple validation.

Details

See

Signature

declare class UnexpectedKey { constructor(
    /**
     * The schema that caused the issue.
     */
    ast: SchemaAST.AST,
    /**
     * The input value that caused the issue.
     */
    actual: unknown
  ) }

Source

Since v4.0.0