poppinss / indicative

Indicative is a simple yet powerful data validator for Node.js and browsers. It makes it so simple to write async validations on nested set of data.
https://indicative.adonisjs.com/
MIT License
417 stars 52 forks source link

Can't match multiple depth arrays with wildcard #154

Closed simontong closed 6 years ago

simontong commented 6 years ago

I have the following rule:

{
  "props.exit_urls.*.url": "required"
}

But when I post the following data:

props[exit_urls][0][url] = ''

It isn't matching the rule.

I tried running the regexp arrayExpressionRegex parser rule in src/Parser/index.js and it appears to only match everything after props..

simontong commented 6 years ago

moved to here - https://github.com/adonisjs/adonis-validation-provider/issues/28