-
Type: Bug
-
Resolution: Gone away
-
Priority: Major - P3
-
Affects Version/s: 1.1.1
-
Component/s: Embedded Shell
-
None
-
Not Needed
Problem Statement/Rationale
When a document fails validation with MongoDB 5.0+, the server returns information on where the problem is. mongosh used to print out that information and now it no longer does.
Steps to Reproduce
Connect to a MongoDB 5.0+
db.createCollection('testval', {validator: {$jsonSchema: { required: ['foo'] }}}) db.testval.insertOne({bar: 123})
Expected Results
The shell tells me where the validation error is like it used to
Actual Results
MongoServerError: Document failed validation
Additional Notes
Any additional information that may be useful to include.