Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean up validation error messages #43

Open
ejmg opened this issue Dec 18, 2023 · 0 comments
Open

Clean up validation error messages #43

ejmg opened this issue Dec 18, 2023 · 0 comments
Labels
new feature New feature or request

Comments

@ejmg
Copy link
Collaborator

ejmg commented Dec 18, 2023

Summary

Error messages from Zod (and, by extension, those returned by API responses) are not useful in their current state.

Description

Part of why #25 exists is that Zod's error message facilities are not being leveraged; instead, auto-generated errors (themselves not very useful for the client to consume) are returned and suppressed when they occur. Configuring the existing and future Zod schemas into using consistent and human readable error messages would improve error management across the entire span of the application.

@ejmg ejmg added the new feature New feature or request label Dec 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant