You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
we can use those code to check each object in an array of even nested array
app.use(function*(){// the "$" indicate this field is in an array;this.checkBody('$.name').len(2,10);this.checkBody('$.age').len(2,10);this.checkBody('$.tags.$').len(1,10);})
The text was updated successfully, but these errors were encountered:
it would be nice if it possible to validate array of object, for example somebody post something like this:
we can use those code to check each object in an array of even nested array
The text was updated successfully, but these errors were encountered: