Closed simontong closed 6 years ago
Yes, since Indicative doesn't allow multiple nested arrays. It only support one level deep. Mentioned in docs too http://indicative.adonisjs.com/#indicative-basics-array-expressions
Yes we can, but I have to spend some more time the Indicative validation engine, and frankly saying I don't know when I will work on it
When using Adonis route validator, I define a custom data object documented here and simply limit them to one level of nesting.
If you have too much nested data, this will be pain, but for couple of keys, I believe you can transform them to one level of depth.
Would swapping indicative for https://www.npmjs.com/package/validatorjs be an option as they work quite similarly
You can try to use that package manually if you want.
@simontong I have added support for this too, will be released soon
thanks, i'll keep an eye out
Release as part of v4. Not in Adonis right now, since it will have small breaking changes. So scheduled for 4.1
Closing this since it's fixed in the new release of the framework (4.1). Please upgrade (it takes only a few minutes).
I have the following rule:
But when I post the following data:
It isn't matching the rule.
I tried running the regexp
arrayExpressionRegex
parser rule insrc/Parser/index.js
and it appears to only match everything afterprops.
.