pipermerriam/flex — pull request #4 by pipermerriam (2014-10-24 22:26:08+00:00)
Title: add support for multiple types

### What is the problem / feature ?

Keywords like `minimum` which are invalid if the type is declared as something non numeric, were not validating correctly if the declaration for `type` was an array of types.

### How did it get fixed / implemented ?

Adjusted the logic so that it checked if at least one of the required types is in the declared types.

### How can someone test / see it ?

Try validating this schema and see it validates

```js
{
'type': ['string', 'integer'],
'minimum': 0,
}
```

*Here is a cute animal picture for your troubles...*

![dreamstime_xxl_3354244](https://cloud.githubusercontent.com/assets/824194/4777236/bf5b712e-5bcc-11e4-9b1d-90ea6ca4088c.jpg)