Skip to content

Commit

Permalink
fix map conversion depth
Browse files Browse the repository at this point in the history
  • Loading branch information
siarheivesialou committed Aug 30, 2024
1 parent 8a9234d commit d0885ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ydb/core/http_proxy/json_proto_conversion.h
Original file line number Diff line number Diff line change
Expand Up @@ -367,7 +367,7 @@ inline void JsonToProto(const NJson::TJsonValue& jsonValue, NProtoBuf::Message*
break;
case google::protobuf::FieldDescriptor::CPPTYPE_MESSAGE: {
if (fieldDescriptor->is_map()) {
AddJsonObjectToProtoAsMap(fieldDescriptor, reflection, message, value, depth);
AddJsonObjectToProtoAsMap(fieldDescriptor, reflection, message, value, depth + 1);
} else {
auto *msg = reflection->MutableMessage(message, fieldDescriptor);
JsonToProto(value, msg, depth + 1);
Expand Down

0 comments on commit d0885ab

Please sign in to comment.