implicit cast based on validation schema
When importing json data containing an ambiguous type (e.g. 0, which can be a double or int32) with a collection that has a validation schema1 set for a specific type (e.g. double), the server should reference the schema to resolve the type to implicitly cast the value to upon inserting the document. Otherwise, one can have a document fail validation because (in this example) the 0 was cast to an int32 instead of a double.
Thanks
1
vote
Nicholas
shared this idea