pipermerriam/flex — pull request #39 by pipermerriam (2014-12-17 16:17:11+00:00)
Title: Fix schema validation with properties and type mismatch

### What is the problem / feature ?

Schema validation had a bug in the case where it is expecting an object with properties, but it receives a non-object type. In this case it ends up calling `.get()` on something like a list which throws an error.

### How did it get fixed / implemented ?

Added code to skip that validation of the type of the value is not an `object`

### How can someone test / see it ?

Code.

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

![excited-hamster](https://cloud.githubusercontent.com/assets/824194/5474294/7a2a7f5c-85cd-11e4-99d8-d47df0c340bd.jpg)