Skip to content

Commit

Permalink
allow_alias
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachael-Graham committed Dec 24, 2024
1 parent 6148b2a commit 304b72b
Show file tree
Hide file tree
Showing 4 changed files with 69 additions and 60 deletions.
2 changes: 1 addition & 1 deletion changelog/v1.19.0-beta3/docs-ai-regex-fix.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
changelog:
- type: NON_USER_FACING
description: >-
Reverts an incorrect regex capitalization in the ai proto introduced by docs revisions.
Adds an alias for incorrect regex capitalization in the ai proto introduced by docs revisions.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions projects/gloo/api/v1/enterprise/options/ai/ai.proto
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,7 @@ message AIPromptGuard {
message HeaderMatch {
// The header string match type.
enum MatchType {
option allow_alias = true;
// The string must match exactly the specified string.
EXACT = 0;
// The string must have the specified prefix.
Expand All @@ -663,6 +664,8 @@ message AIPromptGuard {
SUFFIX = 2;
// The header string must contain the specified string.
CONTAINS = 3;
// Do not use. Use `REGEX` (fully capitalized) instead.
regex = 4;
// The string must match the specified [RE2-style regular expression](https://github.com/google/re2/wiki/) pattern.
REGEX = 4;
}
Expand Down
123 changes: 64 additions & 59 deletions projects/gloo/pkg/api/v1/enterprise/options/ai/ai.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 304b72b

Please sign in to comment.