Nested Map validation (Map of Map of String) allows any nested value #10644
Labels
confirmed-bug
We've confirmed this is a bug in Mongoose and will fix it.
Milestone
Do you want to request a feature or report a bug?
Bug (possibly Feature)
What is the current behavior?
When inserting values into a Map of Map of String, any values is accepted at the innermost level. I'm not sure if this should already be supported or if this actually a feature request.
If the current behavior is a bug, please provide the steps to reproduce.
What is the expected behavior?
Only string values are accepted as values of the nested Map.
What are the versions of Node.js, Mongoose and MongoDB you are using? Note that "latest" is not a version.
Node 14.14.0
Mongoose 6.0.2
MongoDB 4.0.20
The text was updated successfully, but these errors were encountered: