Skip to content

How would you validate individual array elements, for example, using the Distinct rule? #222

Answered by rubenvanassche
ragulka asked this question in Q&A
Discussion options

You must be logged in to vote

At the moment the best solution is to manually add the distinct rule using a static rules method. Our current architecture doesn't supporting adding rules like 'tags.*' => 'distinct'. I'm taking a look into how we can change this but it will be quite a bit of work.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ragulka
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants