LearnBoost/mongoose — pull request #2500 by jondavidjohn (2014-12-02 18:09:17+00:00)
Title: Apply identifying `type` to validator casting errors

@vkarpov15

Related to #2499

This applies appropriate `err.errors.path.type` to signify casting errors as type `cast`.