vazco / uniforms

A React library for building forms from any schema.
https://uniforms.tools
MIT License
1.95k stars 240 forks source link

Improve Zod error messages #1320

Closed piotrpospiech closed 4 months ago

piotrpospiech commented 5 months ago

[!NOTE] The getLabel function should be updated after we add support for passing custom label.

Before:

image

After:

image
codecov[bot] commented 5 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 94.57%. Comparing base (4b3f109) to head (824e93f).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #1320 +/- ## ========================================== + Coverage 94.55% 94.57% +0.01% ========================================== Files 231 231 Lines 3823 3833 +10 Branches 1030 1032 +2 ========================================== + Hits 3615 3625 +10 Misses 82 82 Partials 126 126 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.