flatiron / revalidator

A cross-browser / node.js validator powered by JSON Schema
http://github.com/flatiron/revalidator
Apache License 2.0
589 stars 82 forks source link

Validation array of objects #118

Open neerajincaendo opened 7 years ago

neerajincaendo commented 7 years ago

Hello, i am validating array having objects how can i do that , i try putting object inside items but not working.

messages:{ type: 'array', required: true, items: { type: 'object', required: true, properties:{ description: { type: 'string', required: true } } } }

Please help me out?