Closed julienw closed 7 years ago
@ferjm r?
The trick here is that it sometimes works depending on your node_modules state. For me it wasn't working anymore after working for a few days (maybe because I installed a newer validatorjs at one point while working on my patch, and node wasn't loading the modules the same way).
From https://github.com/sequelize/sequelize/blob/2f8930f84837722f5a6e2f288a3a20dcaf247d4e/lib/utils/validator-extras.js#L18-L20 sequelize is monkey-patching validatorjs, and so the behavior seems to depend on the order of something...
ValidatorJS documentation: https://github.com/chriso/validator.js#validators
…version