Doc: validation error "type"->"kind" as part of public API for better i18n support #8346
Labels
docs
This issue is due to a mistake or omission in the mongoosejs.com documentation
Milestone
Do you want to request a feature or report a bug?
feature
What is the current behavior?
The "type" property of a custom validator becomes the "kind" property of validations that fail that validation. This is GREAT, but it's not part of the public API / it's not documented.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Motivation:
Yes, #6530 added support for callback-based messages, but it's not optimal for my use case for a couple reasons:
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
5.7.7 / 3.2
The text was updated successfully, but these errors were encountered: