Skip to content

Commit cbdd149

Browse files
authored
Exclude google.proto.Struct from validator (#800)
1 parent be0d69d commit cbdd149

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ydb/public/lib/validation/helpers.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
#include <google/protobuf/any.pb.h>
55
#include <google/protobuf/duration.pb.h>
66
#include <google/protobuf/empty.pb.h>
7+
#include <google/protobuf/struct.pb.h>
78
#include <google/protobuf/timestamp.pb.h>
89
#include <google/protobuf/wrappers.pb.h>
910

@@ -52,6 +53,9 @@ bool IsCustomMessage(const google::protobuf::Descriptor* message) {
5253
if (message->full_name() == google::protobuf::Empty::descriptor()->full_name()) {
5354
return false;
5455
}
56+
if (message->full_name() == google::protobuf::Struct::descriptor()->full_name()) {
57+
return false;
58+
}
5559
if (message->full_name() == google::protobuf::Timestamp::descriptor()->full_name()) {
5660
return false;
5761
}

0 commit comments

Comments
 (0)