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

Support adding arguments in the errorMessage for custom constraints #36

Closed
making opened this issue Jan 14, 2020 · 0 comments · Fixed by #38
Closed

Support adding arguments in the errorMessage for custom constraints #36

making opened this issue Jan 14, 2020 · 0 comments · Fixed by #38
Labels
enhancement New feature or request release: 0.2.x

Comments

@making
Copy link
Owner

making commented Jan 14, 2020

Derived from #22 (comment)

Currently CustomConstraint does not have a mechanism to add arguments in the error message.

When CustomConstraint is used, only property name and the actual value are put into the arguments.
https://github.com/making/yavi/blob/0.2.6/src/main/java/am/ik/yavi/builder/ValidatorBuilder.java#L279-L287

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request release: 0.2.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant