diff options
Diffstat (limited to 'library/cpp/protobuf/json/config.h')
-rw-r--r-- | library/cpp/protobuf/json/config.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/library/cpp/protobuf/json/config.h b/library/cpp/protobuf/json/config.h index dc84fb4d5d..ae06b3d8ec 100644 --- a/library/cpp/protobuf/json/config.h +++ b/library/cpp/protobuf/json/config.h @@ -15,20 +15,20 @@ namespace NProtobufJson { bool FormatOutput = false; enum MissingKeyMode { - // Skip missing keys + // Skip missing keys MissingKeySkip = 0, - // Fill missing keys with json null value. + // Fill missing keys with json null value. MissingKeyNull, - // Use default value in any case. - // If default value is not explicitly defined, use default type value: - // i.e. 0 for integers, "" for strings - // For repeated keys, means [] - MissingKeyDefault, - // Use default value if it is explicitly specified for optional fields. - // Skip if no explicitly defined default value for optional fields. - // Throw exception if required field is empty. - // For repeated keys, same as MissingKeySkip - MissingKeyExplicitDefaultThrowRequired + // Use default value in any case. + // If default value is not explicitly defined, use default type value: + // i.e. 0 for integers, "" for strings + // For repeated keys, means [] + MissingKeyDefault, + // Use default value if it is explicitly specified for optional fields. + // Skip if no explicitly defined default value for optional fields. + // Throw exception if required field is empty. + // For repeated keys, same as MissingKeySkip + MissingKeyExplicitDefaultThrowRequired }; MissingKeyMode MissingSingleKeyMode = MissingKeySkip; MissingKeyMode MissingRepeatedKeyMode = MissingKeySkip; |