Skip to content

Commit b9d791d

Browse files
authored
remove "regex" from options/ai/ai.proto (#10641)
1 parent cb6714d commit b9d791d

File tree

4 files changed

+64
-66
lines changed

4 files changed

+64
-66
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
changelog:
2+
- type: FIX
3+
issueLink: https://github.com/solo-io/solo-projects/issues/7875
4+
resolvesIssue: false
5+
description: >-
6+
Remove `regex` field from ai options proto enum to avoid generated code conflicts with `REGEX` field

docs/content/reference/api/github.com/solo-io/gloo/projects/gloo/api/v1/enterprise/options/ai/ai.proto.sk.md

-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

projects/gloo/api/v1/enterprise/options/ai/ai.proto

-3
Original file line numberDiff line numberDiff line change
@@ -646,7 +646,6 @@ message AIPromptGuard {
646646
message HeaderMatch {
647647
// The header string match type.
648648
enum MatchType {
649-
option allow_alias = true;
650649
// The string must match exactly the specified string.
651650
EXACT = 0;
652651
// The string must have the specified prefix.
@@ -657,8 +656,6 @@ message AIPromptGuard {
657656
CONTAINS = 3;
658657
// The string must match the specified [RE2-style regular expression](https://github.com/google/re2/wiki/) pattern.
659658
REGEX = 4;
660-
// Do not use. Use `REGEX` (fully capitalized) instead.
661-
regex = 4;
662659
}
663660
// The header key string to match against.
664661
string key = 1;

projects/gloo/pkg/api/v1/enterprise/options/ai/ai.pb.go

+58-62
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)