masonite icon indicating copy to clipboard operation
masonite copied to clipboard

Update nested validation with index number instead of *

Open josephmancuso opened this issue 3 years ago • 2 comments

Is your feature request related to a problem?

Currently when there is a validation error when using the * nested validations it returns an error like The users.*.last_name field has duplicate values. It should show an error like The users.3.last_name field has duplicate values

Update


Tara Task

josephmancuso avatar Feb 27 '22 17:02 josephmancuso

@girardinsamuel is this possible? we currently hide all the fetching logic behind the dotty code so im not sure its possible to fetch the index of the problem list right?

josephmancuso avatar Feb 27 '22 20:02 josephmancuso

we currently hide all the fetching logic behind the dotty code so im not sure its possible to fetch the index of the problem list right?

You're right it's not that simple ! But it's not the only problem, we could mark this a low priority and not easy for now.

girardinsamuel avatar Mar 18 '22 16:03 girardinsamuel