Starting in MongDB version 5.0, the validator returns detailed error information when a validation condition isn't met.