Skip to content

Add dedicated error code for undeclared key #1403

Closed

Description

@ssalbdivad

This would allow customization for undeclared key errors.

Currently, we are just using a general "predicate" error:

ctx.errorFromNodeContext({
  code: "predicate",
  expected: "removed",
  actual: "",
  relativePath: [k],
  meta: this.meta,
});

Activity

  1. moved this from To do to Backlog in arktypeioon Apr 2, 2025
  2. ssalbdivad commented on Nov 18, 2026

    @ssalbdivad
    MemberAuthor

    Fixed in 3.0.0-beta.0 (#1728). Try it with npm i arktype@next.

  3. moved this from Backlog to Done (merged or closed) in arktypeioon Nov 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    • Status
      Done (merged or closed)

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions