[SERVER-20584] Document Validation should tell WHY a document failed validation Created: 23/Sep/15  Updated: 23/Sep/15  Resolved: 23/Sep/15

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 3.1.8
Fix Version/s: None

Type: Improvement Priority: Major - P3
Reporter: Henrik Ingo (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
duplicates SERVER-20547 Expose the reason an operation fails ... Closed
Participants:

 Description   

In 3.1.8, if I define a validator option, and try to write a document that fails validation, the error message will just say "Document failed validation." For cases where uses have non-trivial rules and documents, it would be much better to also list the fields that failed validation. (Ultimate user friendliness would be to also print the specific rule for that field that was broken, but I'd consider that very much a stretch goal.)



 Comments   
Comment by Scott Hernandez (Inactive) [ 23/Sep/15 ]

Please add comments to the dup if anything is missing there.

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