Details
-
Improvement
-
Resolution: Unresolved
-
Major - P3
-
None
-
None
-
None
-
None
Description
Many times, I'd like to only allow fields that are defined in my Struct. Rather than defining an Extra map[string]interface{} `bson:",inline,omitempty" for every struct and then check to see if it's empty, the driver should be able to return an error when it doesn't have any place to put a field.