LearnBoost/mongoose — Issue #611: required validation does not work in schema when using ref 
Author: dambalah
Created: 2011-11-14 21:28:48+00:00
State: open

If I set up ref for an attribute in my schema and I pass in required: true, the validation is not working.

See this gist for a nodeunit test case:
https://gist.github.com/1365234

In this example, you can see that the first tests passes when I'm testing required: true validation on the content which is a String, but it does not pass when I use it on the ref attribute actor.