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

array field validation #453

Closed
bytestream opened this issue Jun 19, 2020 · 0 comments · Fixed by #454
Closed

array field validation #453

bytestream opened this issue Jun 19, 2020 · 0 comments · Fixed by #454
Labels

Comments

@bytestream
Copy link
Collaborator

Subject of the issue

In the below domain.* rules override the domain rules. This takes place in arrayRules.

Your environment

  • version of this package: 4.0.0
  • version of Laravel: 6.18.1

Steps to reproduce

Rules:

[
    'domain' => 'array',
    'domain.*' => 'string'
]

HTML:

<select multiple name="domain[]">
    <option value="foo.com">foo.com</option>
</select>

Expected behaviour

Field should be validated by array validation rule

Actual behaviour

Field is not validated

@bytestream bytestream mentioned this issue Jun 21, 2020
@bytestream bytestream linked a pull request Jun 22, 2020 that will close this issue
@bytestream bytestream added the bug label Jun 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant