You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ ./node_modules/.bin/ts-node ./src/mongoose-8067.ts
5.6.9
called validator with { a: 'one', b: 'two', c: 'three' }
called validator with one
called validator with two
called validator with three
done
vkarpov15
added
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
and removed
has repro script
There is a repro script, the Mongoose devs need to confirm that it reproduces the issue
labels
Sep 4, 2019
Do you want to request a feature or report a bug?
Bug.
What is the current behavior?
This is a follow-up for #8067
Scenario: Validator is used on an object property. With 5.6.9 the validator gets called several times, with 5.6.11 it gets not called at all.
If the current behavior is a bug, please provide the steps to reproduce.
Running with Mongoose 5.6.9 I see:
Running with Mongoose 5.6.11 I see:
I admittedly didn't try the version in between :-P
What is the expected behavior?
The validator should execute once with
{ a: 'one', b: 'two', c: 'three' }
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
The text was updated successfully, but these errors were encountered: