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
vkarpov15
added
enhancement
This issue is a user-facing general improvement that doesn't fix a bug or add a new feature
and removed
developer-experience
This issue improves error messages, debugging, or reporting
labels
Jun 25, 2019
This ended up being much trickier than I thought because my workaround from my original comment doesn't actually work right now. Looks like validators on nested arrays were broken. We'll need to prioritize some refactoring work on nested arrays like #6405
This ended up being much trickier than I thought because my workaround from my original comment doesn't actually work right now. Looks like validators on nested arrays were broken. We'll need to prioritize some refactoring work on nested arrays like #6405
Thanks for updating. I will write a pre middleware to check enum before fix/release.
I guess I can use type: [[String]] on 5.6.7 right?
Do you want to request a feature or report a bug?
feature
What is the current behavior?
Throw an Error:
Error:
enum
can only be set on an array of strings, not ArrayWhat is the expected behavior?
check each string like array of string
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node 12.0
Mongoose 5.6.1
MongoDB 4.1.0
The text was updated successfully, but these errors were encountered: