From d0885ab121eff087fce70acde75261779a626660 Mon Sep 17 00:00:00 2001 From: Sergey Veselov Date: Fri, 30 Aug 2024 12:18:35 +0000 Subject: [PATCH] fix map conversion depth --- ydb/core/http_proxy/json_proto_conversion.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ydb/core/http_proxy/json_proto_conversion.h b/ydb/core/http_proxy/json_proto_conversion.h index ee8ed381f099..15a9142cc3ee 100644 --- a/ydb/core/http_proxy/json_proto_conversion.h +++ b/ydb/core/http_proxy/json_proto_conversion.h @@ -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);