Skip to content

Unify error normalization and formatting #709

@yamcodes

Description

@yamcodes

Refactor the error system to use a normalized EnvIssue format and a consistent formatIssues utility. This will allow better handling of errors from multiple validation engines (ArkType, Standard Schema) and provide a stable base for CLI and IDE integrations.

  • Consolidate EnvIssue type.
  • Implement stable formatIssues logic.
  • Ensure consistent error message reshaping across validators.

Was originally part of #705 but taken out to reduce the PR (#704) size.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestrefactorA change to the codebase that's neither a bug fix nor added functionality

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions