bigmlcom/closchema — pull request #10 by charleslparker (2012-01-28 19:10:28+00:00)
Title: Inheritance + bug fixes

This should fix issues #8, #9, and make headway towards bigmlcom/wintermute#89.

I've implemented `extends` as it is described here:

http://www.sitepen.com/blog/2009/09/02/json-namespacing/

Basically, anything validating as `:type "object"` can have an `:extends` property. The value of `extends` can be any valid schema. All this specifies is that, as part of its validation, this object must also validate against the specified schema.

Since this turned out to be laughably easy, I've also went a step further and done "multiple inheritance", where `:extends` can also be an array of schemas. This has the expected behavior.

I've put more in `readme.md`.