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 required_if and required_unless #658

Merged
merged 2 commits into from Sep 27, 2020
Merged

Conversation

hzwwen
Copy link
Contributor

@hzwwen hzwwen commented Sep 3, 2020

Enhances #556 .

Make sure that you've checked the boxes below before you submit PR:

  • Tests exist or have been written that cover this particular change.

Change Details:

  • requiredIf: The field under validation must be present and not empty only if all the other specified fields are equal to the value following with the specified field.
  • requiredUnless: The field under validation must be present and not empty only unless all the other specified fields are equal to the value following with the specified field.

@go-playground/admins

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.

None yet

2 participants