geraintluff/tv4 — pull request #66 by sderickson (2013-09-18 21:27:06+00:00)
Title: Added contextSchema argument to validate API functions.

I need to validate sub-schemas within the larger schema, and local references break if you just try to validate sub-schemas on sub-data. So I added a fourth argument to the validate API functions to include the context schema, rather than use the default behavior where the context schema is the same one that's given in for validation.