Skip to content

Commit

Permalink
add field's message descriptor itself as well
Browse files Browse the repository at this point in the history
  • Loading branch information
oliversun9 committed Oct 24, 2023
1 parent af26f0f commit 5a9fae1
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions internal/evaluator/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -275,6 +275,7 @@ func (bldr *Builder) processFieldExpressions(
if fieldDesc.Kind() == protoreflect.MessageKind {
opts = []cel.EnvOption{
cel.Types(dynamicpb.NewMessage(fieldDesc.ContainingMessage())),
cel.Types(dynamicpb.NewMessage(fieldDesc.Message())),
cel.Variable("this", cel.ObjectType(string(fieldDesc.Message().FullName()))),
}
} else {
Expand Down

0 comments on commit 5a9fae1

Please sign in to comment.