summaryrefslogtreecommitdiff
path: root/src/mongo/idl
diff options
context:
space:
mode:
authorJudah Schvimer <judah@mongodb.com>2020-03-03 11:35:22 -0500
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-03-20 13:36:53 +0000
commit8751e79bc03b5c4c679040440ac76481fd3db356 (patch)
treeb51dd0aa8859537a491537c0534d6a31415baea4 /src/mongo/idl
parentd302a91c30b2648a2262e4ce737e767a3db8597d (diff)
downloadmongo-8751e79bc03b5c4c679040440ac76481fd3db356.tar.gz
SERVER-46434 turn MemberConfig into IDL
Diffstat (limited to 'src/mongo/idl')
-rw-r--r--src/mongo/idl/basic_types.idl10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/mongo/idl/basic_types.idl b/src/mongo/idl/basic_types.idl
index fda3a56df0d..3a47d938fd7 100644
--- a/src/mongo/idl/basic_types.idl
+++ b/src/mongo/idl/basic_types.idl
@@ -57,6 +57,16 @@ types:
cpp_type: std::int64_t
deserializer: "mongo::BSONElement::safeNumberLong"
+ safeDouble:
+ bson_serialization_type:
+ - long
+ - int
+ - decimal
+ - double
+ description: "Accepts any numerical type within double range"
+ cpp_type: double
+ deserializer: "mongo::BSONElement::safeNumberDouble"
+
long:
bson_serialization_type: long
description: "A BSON 64-bit integer"