<commit_before># validate.js-array
[![Build Status](https://travis-ci.org/gaggle/validate.js-array.svg?branch=master)](https://travis-ci.org/gaggle/validate.js-array)
[![Coverage Status](https://coveralls.io/repos/github/gaggle/validate.js-array/badge.svg?branch=master)](https://coveralls.io/github/gaggle/validate.js-array?branch=master)

`array` validation plugin for [validate.js](http://validatejs.org).

Install:

    npm install gaggle/validate.js-array

Use:

    var validate = require("validate.js")
    require("validate.js-array").register()

    var schema = {"foo": {array: {bar: {presence: true}}}}
    validate({foo: [{bar: "baz"}]}, this.schema)
    // => undefined

    validate({foo: [{invalid: "data"}]}, this.schema)
    // => { foo: [ 'Foo element [{"invalid":"data"}] does not validate:
            [{"bar":["Bar can\'t be blank"]}]' ] }
<commit_msg>dependency badge<commit_after># validate.js-array
[![Build Status](https://travis-ci.org/gaggle/validate.js-array.svg?branch=master)](https://travis-ci.org/gaggle/validate.js-array)
[![Coverage Status](https://coveralls.io/repos/github/gaggle/validate.js-array/badge.svg?branch=master)](https://coveralls.io/github/gaggle/validate.js-array?branch=master)
[![Dependency Status](https://david-dm.org/gaggle/validate.js-array.svg)](https://david-dm.org/gaggle/validate.js-array)

`array` validation plugin for [validate.js](http://validatejs.org).

Install:

    npm install gaggle/validate.js-array

Use:

    var validate = require("validate.js")
    require("validate.js-array").register()

    var schema = {"foo": {array: {bar: {presence: true}}}}
    validate({foo: [{bar: "baz"}]}, this.schema)
    // => undefined

    validate({foo: [{invalid: "data"}]}, this.schema)
    // => { foo: [ 'Foo element [{"invalid":"data"}] does not validate:
            [{"bar":["Bar can\'t be blank"]}]' ] }
{'fraction_non_alphanumeric': 0.2108079186730872, 'fraction_numerical': 0.0, 'mean_word_length': 4.3428571428571425, 'pattern_counts': {'":': 6, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 10, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6129929', 'n_tokens_mistral': 654, 'n_tokens_neox': 626, 'n_words': 97}