Skip to content

Commit

Permalink
Exclude google.proto.Struct from validator (ydb-platform#800)
Browse files Browse the repository at this point in the history
  • Loading branch information
Enjection authored Dec 29, 2023
1 parent be0d69d commit cbdd149
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ydb/public/lib/validation/helpers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
#include <google/protobuf/any.pb.h>
#include <google/protobuf/duration.pb.h>
#include <google/protobuf/empty.pb.h>
#include <google/protobuf/struct.pb.h>
#include <google/protobuf/timestamp.pb.h>
#include <google/protobuf/wrappers.pb.h>

Expand Down Expand Up @@ -52,6 +53,9 @@ bool IsCustomMessage(const google::protobuf::Descriptor* message) {
if (message->full_name() == google::protobuf::Empty::descriptor()->full_name()) {
return false;
}
if (message->full_name() == google::protobuf::Struct::descriptor()->full_name()) {
return false;
}
if (message->full_name() == google::protobuf::Timestamp::descriptor()->full_name()) {
return false;
}
Expand Down

0 comments on commit cbdd149

Please sign in to comment.