After updating to the latest mongoose v5.6.13, I noticed that a bunch of my tests were failing. Turns out they were all due to this plugin no longer functioning properly. It appears that the plugin is no longer working when inserted at the global or schema level.
After cloning the repo and running the tests, I discovered that the following are failing for mongoose ^5.6.0:
Should fail validation with custom message on bad ID
Should fail validation on bad ID with IdValidator instance
Should fail validation if bad ID set after previously good ID value
Should fail ID validation in an array of ID references
After updating to the latest mongoose v5.6.13, I noticed that a bunch of my tests were failing. Turns out they were all due to this plugin no longer functioning properly. It appears that the plugin is no longer working when inserted at the global or schema level.
After cloning the repo and running the tests, I discovered that the following are failing for mongoose ^5.6.0: