How to validate if the value of an array is an email?

hi, i have a question…
Is it possible to validate the value of an array if it is an email or not?

Use the “email” validator. See the full documentation at https://indicative.adonisjs.com/guides/master/introduction

Here’s is the link to the correct docs for the version used by AdonisJs validator https://indicative-v5.adonisjs.com/docs/email.

Also, here’s the code snippet to do that.

{
  'emails.*': 'email'
}
1 Like

thanks for your answer, it does work now