Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/bitdrift_public/protobuf/matcher/v1/log_matcher.proto
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ message LogMatcher {
value_matcher.v1.SemVerValueMatch sem_ver_value_match = 4;
value_matcher.v1.IsSetMatch is_set_match = 5;
value_matcher.v1.DoubleValueMatch double_value_match = 6;
value_matcher.v1.JsonPathValueMatch json_value_match = 7;
}
}

Expand Down
17 changes: 17 additions & 0 deletions src/bitdrift_public/protobuf/value_matcher/v1/value_matcher.proto
Original file line number Diff line number Diff line change
Expand Up @@ -62,5 +62,22 @@ message SemVerValueMatch {
string match_value = 2 [(validate.rules).string = {min_len: 1}];
}

message JsonPathValueMatch {
Operator operator = 1 [(validate.rules).enum.defined_only = true];
message JsonPath {
message KeyOrIndex {
oneof key_or_index {
option (validate.required) = true;

string key = 1 [(validate.rules).string = {min_len: 1}];
int32 index = 2;
}
}

string path = 1 [(validate.rules).string = {min_len: 1}];
}
string match_value = 2 [(validate.rules).string = {min_len: 1}];
}

// Matcher to evaluate whether a value is set.
message IsSetMatch {}
Loading