-
Type: New Feature
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Internal Code
-
Labels:None
-
Fully Compatible
-
Security 2018-09-10, Security 2018-09-24
IDL enforces required fields to be present when serializing into BSON. However IDL is also used internally without serialization. Developers usually want to enforce all required fields are specified when creating an instance. Currently, we have functions to enforce them manually. OplogEntry is an example. Otherwise, we forgot some fields sometimes. It would be nice if the IDL can provide a way to enforce that. It could be either a constructor or a static factory function.