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

Is it possible to define a "dictionary" of common error messages? #151

Open
agjs opened this issue Jun 13, 2023 · 0 comments
Open

Is it possible to define a "dictionary" of common error messages? #151

agjs opened this issue Jun 13, 2023 · 0 comments

Comments

@agjs
Copy link

agjs commented Jun 13, 2023

Hey folks. Is it possible to define a list of common error messages, so I don't have to repeat the same message in every schema.

For instance, e.g. minLength, I don't want to rewrite the same message every single time, hence, I'd want to define some of the "global" errors. And if this is not possible, does any of the current maintainers knows if it's feasible to implement something like that in this library, I'm happy to contribute.

Thanks in advance

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

No branches or pull requests

1 participant