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

Better schema validation errors #615

Open
mikabytes opened this issue Feb 4, 2024 · 0 comments
Open

Better schema validation errors #615

mikabytes opened this issue Feb 4, 2024 · 0 comments

Comments

@mikabytes
Copy link
Collaborator

As of #612 we introduce configuration validation with minimal error messages.

It would be nice if we extended it to provide better error messages.

Example:

{
  aliases: 123
}
// "messages":["Invalid configuration: `aliases`"]

While this communicates that there is an issue, it doesn't explain what the required type is. A better error message would be

Invalid configuration: `aliases` was of type number, but expected object

Discussion started here with some suggestions for how to achieve it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant