-
-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Missing reason in the ValidatorProps type #14496
Comments
vkarpov15
added a commit
that referenced
this issue
Apr 4, 2024
… and add support for accessing validator `reason` Fix #14496
vkarpov15
added a commit
that referenced
this issue
Apr 7, 2024
types(validation): support function for validator `message` property, and add support for accessing validator `reason`
This was referenced May 26, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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: