aboutsummaryrefslogtreecommitdiffstats
path: root/library/cpp/protobuf/json/json2proto.h
diff options
context:
space:
mode:
authorstakanviski <stakanviski@yandex-team.ru>2022-02-10 16:50:01 +0300
committerDaniil Cherednik <dcherednik@yandex-team.ru>2022-02-10 16:50:01 +0300
commit95ab23a39b5482a434361566cabdd5b0a433cb43 (patch)
tree5d5cb817648f650d76cf1076100726fd9b8448e8 /library/cpp/protobuf/json/json2proto.h
parentda8356a5535e6177965cba3bbae73c5fb28f6ccc (diff)
downloadydb-95ab23a39b5482a434361566cabdd5b0a433cb43.tar.gz
Restoring authorship annotation for <stakanviski@yandex-team.ru>. Commit 2 of 2.
Diffstat (limited to 'library/cpp/protobuf/json/json2proto.h')
-rw-r--r--library/cpp/protobuf/json/json2proto.h8
1 files changed, 4 insertions, 4 deletions
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;