summaryrefslogtreecommitdiff
path: root/src/mongo/idl/unittest.idl
diff options
context:
space:
mode:
authorHana Pearlman <hana.pearlman@mongodb.com>2021-01-05 16:17:51 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-01-18 00:14:59 +0000
commite5e660ae76806c1cb3628f70925e10287841f478 (patch)
tree4bb5355d63215d42aa7e7a615fb247f2dd89afc1 /src/mongo/idl/unittest.idl
parentcc8671bcf846a6aeda28a5cf81aea750c2fca4bd (diff)
downloadmongo-e5e660ae76806c1cb3628f70925e10287841f478.tar.gz
SERVER-51621: Convert findAndModify output to IDL
Diffstat (limited to 'src/mongo/idl/unittest.idl')
-rw-r--r--src/mongo/idl/unittest.idl32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/mongo/idl/unittest.idl b/src/mongo/idl/unittest.idl
index 01fad9499ee..8751e82037b 100644
--- a/src/mongo/idl/unittest.idl
+++ b/src/mongo/idl/unittest.idl
@@ -343,6 +343,30 @@ structs:
type: bindata_uuid
optional: true
+ always_serialize_field:
+ description: UnitTest for always_serialize fields
+ fields:
+ field1:
+ type: string
+ always_serialize: true
+ optional: true
+ field2:
+ type: int
+ always_serialize: true
+ optional: true
+ field3:
+ type: object
+ always_serialize: true
+ optional: true
+ field4:
+ type: object
+ always_serialize: true
+ optional: true
+ field5:
+ type: object
+ always_serialize: false
+ optional: true
+
##################################################################################################
#
# Test array of simple types
@@ -829,6 +853,14 @@ commands:
reply_type: OkReply
fields:
anyTypeField: IDLAnyType
+
+ CommandWithAnyTypeOwnedMember:
+ description: "A mock command to test IDLAnyTypeOwned"
+ command_name: CommandWithValueTypeMember
+ namespace: ignored
+ reply_type: OkReply
+ fields:
+ anyTypeField: IDLAnyTypeOwned
# Test that we correctly generate C++ base classes for versioned API commands with different
# key names, command names, and C++ names.