CampbellSoftwareSolutions / mongoose-id-validator

Mongoose plug in to validate ObjectID references point to valid existing documents.
Other
47 stars 26 forks source link

Allowed for a null array of IDs #2

Closed AlinaShtramwasser closed 9 years ago

AlinaShtramwasser commented 9 years ago

The mongoose-id-validator allows for the vaidation of an array of ID references -- but it doesn't take into account the case where this array might be null -- i.e. if it is optional. I added a small fix for that scenario in order to make the code work for the application we are working on.

martin-css commented 9 years ago

Declined as per issue #2 but thanks for the contribution.