diff options
author | George Wangensteen <george.wangensteen@mongodb.com> | 2020-10-26 20:40:49 +0000 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2020-11-06 01:06:48 +0000 |
commit | d12213c0198b2a2adfa033a8661e026c9e9c7f7f (patch) | |
tree | e2ed810c4f96dea80438cbf2a83030034e56abee /src/mongo/idl/basic_types.idl | |
parent | 2c2146ac0ae876984423c04a258e32b4c5843315 (diff) | |
download | mongo-d12213c0198b2a2adfa033a8661e026c9e9c7f7f.tar.gz |
SERVER-51374 Create IDL definition for ErrorReply
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 |