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
I have searched existing issues to ensure the bug has not already been reported
Mongoose version
8.2.4
Node.js version
20
MongoDB server version
6
Typescript version (if applicable)
5.4.3
Description
The reason field is missing in the ValidatorPropstype. This interface is used to define the argument of the message function when declaring a validator.
Prerequisites
Mongoose version
8.2.4
Node.js version
20
MongoDB server version
6
Typescript version (if applicable)
5.4.3
Description
The
reason
field is missing in theValidatorProps
type. This interface is used to define the argument of the message function when declaring a validator.Steps to Reproduce
Use the example in the SchemaType.prototype.validate() API doc
Expected Behavior
The
ValidatorProps
interface could be :The text was updated successfully, but these errors were encountered: