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
![](https://secure.gravatar.com/avatar/f81833c45661e01d2431fb2bd8b8a716?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)