Say I have a javascript object (the data) and I want to check to see if it conforms to a given Schema that I've defined.
Is there a way to do this without turning the schema into a model, creating an instance of that model populated with the data, and running mymodel.validate()?
I'd love to have a Schema(definition).validate(data, callback), but the validate function is defined on the Document class, from what I could tell.