[DOCS-7369] Comment on: "manual/core/document-validation.txt" Created: 08/Mar/16  Updated: 30/Oct/23  Resolved: 01/Nov/22

Status: Closed
Project: Documentation
Component/s: manual, Server
Affects Version/s: None
Fix Version/s: Server_Docs_20231030

Type: Bug Priority: Major - P3
Reporter: Docs Collector User (Inactive) Assignee: Unassigned
Resolution: Won't Fix Votes: 0
Labels: collector-298ba4e7, docs-triage
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

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


Participants:
Days since reply: 1 year, 14 weeks, 1 day ago
Epic Link: DOCSP-1769

 Description   

How do I validate a model, that contains subtype as other complexe structure.
for a db entry that would be :
{
publisher: {
publisherId:

{ type: String, label: 'PublisherId, like HLC or MSG' }

,
scoreId:

{ type: String, label: 'Publisher specified id' }

,
identity:

{ type: Object, label: 'complete identity data from publisher', blackbox: true }

},
renderJob:

{ type: renderJobSchema, label: 'Information about the rendering job', optional: true }

}

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.



 Comments   
Comment by Education Bot [ 01/Nov/22 ]

Hello! This ticket has been closed due to inactivity. If you believe this ticket is still important, please reopen it and leave a comment to explain why. Thank you!

Generated at Thu Feb 08 07:54:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.