LearnBoost/mongoose — pull request #1775 by tjbutz (2013-11-08 21:35:29+00:00)
Title: Allow to define a type for custom SchemaType validators

In previews releases the type of SchemaType validators used to equal the validator message. In the latest release the type is now "user defined". In the past I was able to distinguish all validation errors (build in and custom) by the type. Now I get for custom validation errors "user defined". This fix allows to define a type for custom SchemaType validators.