diff options
Diffstat (limited to 'src/mongo/idl/basic_types.idl')
-rw-r--r-- | src/mongo/idl/basic_types.idl | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/src/mongo/idl/basic_types.idl b/src/mongo/idl/basic_types.idl index 2a5a569573b..063598e8d5d 100644 --- a/src/mongo/idl/basic_types.idl +++ b/src/mongo/idl/basic_types.idl @@ -196,6 +196,21 @@ types: deserializer: "mongo::FeatureCompatibilityVersionParser::parseVersion" structs: + OkReply: description: "Shared by commands that reply with just {ok: 1} and no additional information" - strict: true
\ No newline at end of file + strict: true + + ErrorReply: + description: "Error Reply structure shared by all commands" + strict: false + fields: + ok: + type: safeDouble + validator: { gte: 0.0, lte: 0.0 } + code: int + codeName: string + errmsg: string + errorLabels: + type: array<string> + optional: true |