Skip to content

Improvements to callback rule#162

Open
marcusorjames wants to merge 2 commits intorakit:masterfrom
marcusorjames:update/callback-rule
Open

Improvements to callback rule#162
marcusorjames wants to merge 2 commits intorakit:masterfrom
marcusorjames:update/callback-rule

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