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

Improvements to callback rule #162

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

marcusorjames
Copy link

Improve callbacks by allowing multiple per item and allowing access to validation array within the callback.

This allows for multiple callback rules per item and also indexes the
`ErrorBag`, which is helpful for identifying what validation failures
exist.
This is specifically useful for callbacks where Rule is bound to the
closure. As private/protected properties are not accessible in bound
closures.
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

Successfully merging this pull request may close these issues.

1 participant