LearnBoost/mongoose — pull request #2220 by nelisbijl (2014-07-30 08:31:11+00:00)
Title: Conditional required

Second try, still struggling with Git

Conditional required: allows the value for required to be a callback:
name : { type: String, required: function () { /* this is doc */ return true/false; } }