MetaMask / MetaMask/snaps

Improve readability of struct validation errors when using unioned types

Open
#2,133 1 comment 0 reactions 0 assignees View on GitHub
snaps-deferred snaps-maintenance snaps-prioritized-2023-oct
Dominant language
TypeScript
Stars
853
Forks
662
Avg merge
2d 8h
Merged PRs (30d)
8

Description

Some superstruct struct errors are not very understandable, especially when the struc is an union.

Contributor guide

Open the contributing guide

Research direction

Start by locating the Superstruct validation error formatting and the handling of unioned types. Review existing examples or tests for struct errors, then define completion as producing clearer, understandable errors for union validation failures.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
testing-qa
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.