diff options
| author | robot-piglet <[email protected]> | 2025-10-07 16:38:53 +0300 |
|---|---|---|
| committer | robot-piglet <[email protected]> | 2025-10-07 17:01:08 +0300 |
| commit | ea8dd0f084e1cbe44c7e3c9b14324818f0fed8bc (patch) | |
| tree | eb5383c7a8a07c5f9e91843d16abaee76912b104 /library/cpp/protobuf/json/ordered_maps | |
| parent | 95d957b68b215301a5ebf3cf3e0d26cfbb0f71e8 (diff) | |
Intermediate changes
commit_hash:750c9e900f9b56e84ebbac73a0dd8b987d76cb47
Diffstat (limited to 'library/cpp/protobuf/json/ordered_maps')
| -rw-r--r-- | library/cpp/protobuf/json/ordered_maps/json2proto_ordered.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/library/cpp/protobuf/json/ordered_maps/json2proto_ordered.cpp b/library/cpp/protobuf/json/ordered_maps/json2proto_ordered.cpp index 87103c1aa37..6be3502d577 100644 --- a/library/cpp/protobuf/json/ordered_maps/json2proto_ordered.cpp +++ b/library/cpp/protobuf/json/ordered_maps/json2proto_ordered.cpp @@ -230,7 +230,7 @@ JsonEnum2Field(const NJson::NOrderedJson::TJsonValue& json, const auto value = json.GetInteger(); enumFieldValue = enumField->FindValueByNumber(value); if (!enumFieldValue) { - ythrow yexception() << "Invalid integer value of JSON enum field: " << value << "."; + ythrow yexception() << "Invalid integer value of JSON enum field: " << value; } } else if (json.IsString()) { const auto& value = json.GetString(); @@ -246,7 +246,7 @@ JsonEnum2Field(const NJson::NOrderedJson::TJsonValue& json, } } if (!enumFieldValue) { - ythrow yexception() << "Invalid string value of JSON enum field: " << TStringBuf(value).Head(100) << "."; + ythrow yexception() << "Invalid string value of JSON enum field: " << TStringBuf(value).Head(100); } } else { ythrow yexception() << "Invalid type of JSON enum field: not an integer/string."; @@ -280,7 +280,7 @@ Json2SingleField(const NJson::NOrderedJson::TJsonValue& json, if (auto fieldJsonType = fieldJson.GetType(); fieldJsonType == NJson::NOrderedJson::JSON_UNDEFINED || fieldJsonType == NJson::NOrderedJson::JSON_NULL) { if (field.is_required() && !field.has_default_value() && !reflection->HasField(proto, &field) && config.CheckRequiredFields) { ythrow yexception() << "JSON has no field for required field " - << name << "."; + << name; } return; } @@ -419,7 +419,7 @@ Json2RepeatedFieldValue(const NJson::NOrderedJson::TJsonValue& jsonValue, default: ythrow yexception() << "Unknown protobuf field type: " - << static_cast<int>(field.cpp_type()) << "."; + << static_cast<int>(field.cpp_type()); } } |
