From 95ab23a39b5482a434361566cabdd5b0a433cb43 Mon Sep 17 00:00:00 2001 From: stakanviski <stakanviski@yandex-team.ru> Date: Thu, 10 Feb 2022 16:50:01 +0300 Subject: Restoring authorship annotation for <stakanviski@yandex-team.ru>. Commit 2 of 2. --- library/cpp/protobuf/json/json2proto.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'library/cpp/protobuf/json/json2proto.h') diff --git a/library/cpp/protobuf/json/json2proto.h b/library/cpp/protobuf/json/json2proto.h index 00e7a9accb..4c33498dfa 100644 --- a/library/cpp/protobuf/json/json2proto.h +++ b/library/cpp/protobuf/json/json2proto.h @@ -52,7 +52,7 @@ namespace NProtobufJson { StringTransforms.push_back(transform); return *this; } - + TSelf& SetCastFromString(bool cast) { CastFromString = cast; return *this; @@ -67,7 +67,7 @@ namespace NProtobufJson { CastRobust = cast; return *this; } - + TSelf& SetMapAsObject(bool mapAsObject) { MapAsObject = mapAsObject; return *this; @@ -112,7 +112,7 @@ namespace NProtobufJson { /// Transforms will be applied only to string values (== protobuf fields of string / bytes type). TVector<TStringTransformPtr> StringTransforms; - + /// Cast string json values to protobuf field type bool CastFromString = false; /// Skip empty strings, instead casting from string into scalar types. @@ -120,7 +120,7 @@ namespace NProtobufJson { bool DoNotCastEmptyStrings = false; /// Cast all json values to protobuf field types bool CastRobust = false; - + /// Consider map to be an object, otherwise consider it to be an array of key/value objects bool MapAsObject = false; -- cgit v1.2.3