Skip to content

Commit cdcfc86

Browse files
authored
feat: add support for materialized segment targeting criteria (#201)
1 parent cb9e8f5 commit cdcfc86

File tree

19 files changed

+3085
-209
lines changed

19 files changed

+3085
-209
lines changed

confidence-resolver/protos/confidence/flags/types/v1/target.proto

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ package confidence.flags.types.v1;
33

44
import "google/protobuf/timestamp.proto";
55

6+
option go_package = "github.com/spotify/confidence-resolver/openfeature-provider/go/confidence/internal/proto/types";
67
option java_multiple_files = true;
78
option java_package = "com.spotify.confidence.flags.types.v1";
89
option java_outer_classname = "TargetingProto";
@@ -16,6 +17,7 @@ message Targeting {
1617
oneof criterion {
1718
AttributeCriterion attribute = 1;
1819
SegmentCriterion segment = 2 ;
20+
MaterializedSegmentCriterion materialized_segment = 3;
1921
}
2022
message AttributeCriterion {
2123
string attribute_name = 1;
@@ -32,6 +34,10 @@ message Targeting {
3234
message SegmentCriterion {
3335
string segment = 1;
3436
}
37+
38+
message MaterializedSegmentCriterion {
39+
string materialized_segment = 1;
40+
}
3541
}
3642

3743
// is match if at least one input item matches the inner rule

0 commit comments

Comments
 (0)