Skip to content

Allow for the use of nested rules#21

Open
JacobBennett wants to merge 5 commits intolaracasts:masterfrom
JacobBennett:master
Open

Allow for the use of nested rules#21
JacobBennett wants to merge 5 commits intolaracasts:masterfrom
JacobBennett:master

Conversation

@JacobBennett
Copy link

Allowing for nested rules and then utilizing those rules by setting a context on the validator allows you to use the same validator class for instances where rules only differ slightly. For example in the case of creating a user vs updating a user.

Tests and Documentation included in PR.

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