Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

validating objects with nested array of objects #146

Closed
airtonix opened this issue Jul 29, 2016 · 1 comment
Closed

validating objects with nested array of objects #146

airtonix opened this issue Jul 29, 2016 · 1 comment

Comments

@airtonix
Copy link

let data = {
  name: 'foo',
  items: [
    { name: 'bar', amount: '[email protected]', baz: true},
    { name: 'bok', amount: 60, baz: 'not a boolean'},
    { name: 'bog', amount: 60, baz: false},
  ]
}
  1. Does validate.js handle writing a validation schema for this?
  2. Does validate.js handle declaring errors as: { 'items.0.amount': [ 'must be a number'] } ?
@ansman
Copy link
Owner

ansman commented Aug 9, 2016

This is poorly supported at this moment, sorry.

You can track the progress in #1

@ansman ansman closed this as completed Aug 9, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants