Skip to Main Content

MongoByte MongoDB Logo

Welcome to the new MongoDB Feedback Portal!

{Improvement: "Your idea"}
We’ve upgraded our system to better capture and act on your feedback.
Your feedback is meaningful and helps us build better products.

Status Submitted
Categories CLI & Shell
Created by Guest
Created on Jul 3, 2024

mongoimport should explain why documents fail schema validation

Currently, with mongoimport 100.9 and MongoDB 7.0 with schema validation enabled, mongoimport will only report that a document failed to import due to schema validation. It would be useful if it could explain why it violates the schema (e.g. which fields are missing, which datatypes are incorrect, etc.). This is similar to the feature request for MongoDB Compass[2] [1]: https://www.mongodb.com/developer/products/mongodb/mongodb-5-0-schema-validation/ [2]: https://feedback.mongodb.com/forums/924283-compass/suggestions/40907638-explain-why-document-failed-validation