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

Add more information in the Error Type. #115

Closed
BennyPLS opened this issue Jun 13, 2024 · 1 comment
Closed

Add more information in the Error Type. #115

BennyPLS opened this issue Jun 13, 2024 · 1 comment

Comments

@BennyPLS
Copy link

I think the current implementation, which includes only a message and it's the responsibility of the rule, is a little cumbersome. If I want a different error message, I need to create a custom rule. If this applies to all the rules, I believe it's worth considering programmatic access to the validation type and constraint info that failed or the constraints (Like in the param data in the Validator Crate) or the option to override the error message. I expect comments on this or even if it’s relatively easy to implement with the current state of this library or even if it's the plan.

Thanks for your time.

@jprochazk
Copy link
Owner

Please search through issues before opening new ones:

@jprochazk jprochazk closed this as not planned Won't fix, can't repro, duplicate, stale Jun 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants