Details
-
Bug
-
Resolution: Won't Fix
-
Major - P3
-
None
-
nodejs, MAC Mongo3.2, node-native-driver 2.1.7
*Location*: https://docs.mongodb.org/manual/core/document-validation/
*User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36
*Referrer*: https://www.google.ca/
*Screen Resolution*: 1440 x 900
*repo*: docs
*source*: core/document-validation
nodejs, MAC Mongo3.2, node-native-driver 2.1.7 *Location*: https://docs.mongodb.org/manual/core/document-validation/ *User-Agent*: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/49.0.2623.75 Safari/537.36 *Referrer*: https://www.google.ca/ *Screen Resolution*: 1440 x 900 *repo*: docs *source*: core/document-validation
Description
How do I validate a model, that contains subtype as other complexe structure.
for a db entry that would be :
{
publisher: {
publisherId:
,
scoreId:
,
identity:
},
renderJob:
}
Let's say I want a validator to validate publisher.publisherID, how do I do that if i only have one level of validation in the $or value of the validator.