CampbellSoftwareSolutions / mongoose-id-validator

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

More robust check for if schemaType path is an array #36

Closed makinde closed 4 years ago

makinde commented 4 years ago

Fixes #35

The old way of detecting if we needed the array validator didn't handle certain schemaType from mongoose 5.4+. This handles those cases.

makinde commented 4 years ago

ping @martin-css . Any thoughts?

martin-css commented 4 years ago

Sorry, never noticed the original notification. Thanks for the contribution! :+1: