axe-api / validator

Rule-based data validation library in Node.js
https://validator.axe-api.com
MIT License
18 stars 1 forks source link

Array of Object validation #54

Open GoldraK opened 2 months ago

GoldraK commented 2 months ago

Hello again,

I continue using your library in my projects and now I have to validate an array of objects.

In Laravel it is done as follows.

$rules = [ 'schedules' => 'required|array', 'schedules.*.name' => 'required|string|max:255', 'schedules.*.description' => 'required|string|max:1000', ];

Is there any possibility of implementing it?

Thank you.

ozziest commented 2 months ago

Hello @GoldraK !

Sorry for the late response, I was on holiday. And thanks for the feedback. We can do it, I guess. Let me work on it this week. ☺️