-
Type: Improvement
-
Resolution: Duplicate
-
Priority: Trivial - P5
-
None
-
Affects Version/s: 3.6.0-rc4
-
Component/s: None
-
None
When a document fails validation from a prescribed schema a WriteError is generated with a
{{"code": 121,
"errmsg" : "Document failed validation"}}
message. It would be great if the error message would be more explicit as to why the write failed, i.e. which rule was violated. Or, allow for an error parameter to be included in the schema validation rules to allow for custom messaging if a rule is violated, i.e. error: "Are you sure that you are passing in an 'int' value?".
- duplicates
-
SERVER-20547 Expose the reason an operation fails document validation
- Closed