-
Type:
Improvement
-
Resolution: Won't Do
-
Priority:
Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
-
Query 2020-10-05, Query 2020-10-19
-
None
-
None
-
None
-
None
-
None
-
None
-
None
Currently, when the validator expression contains {$type: 'number'} (or, equivalently, the $jsonSchema keywords type or bsonType), the 'expectedTypes' field will report the types that are being aliased (i.e. double, long, int, decimal) and not the 'number' alias specified by the user. The error message might be clearer for $type if the 'number' alias is reported under 'expectedTypes' instead.