Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
rodaine committed Sep 16, 2023
1 parent 10ad04e commit 44ff83f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/evaluator/builder.go
Original file line number Diff line number Diff line change
Expand Up @@ -268,7 +268,7 @@ func (bldr *Builder) processFieldExpressions(
var opts []cel.EnvOption
if fieldDesc.Kind() == protoreflect.MessageKind {
opts = []cel.EnvOption{
cel.TypeDescs(fieldDesc.ParentFile()),
cel.TypeDescs(fieldDesc.Message().ParentFile()),
cel.Variable("this", cel.ObjectType(string(fieldDesc.Message().FullName()))),
}
} else {
Expand Down
2 changes: 1 addition & 1 deletion proto/tests/example/v1/validations.proto
Original file line number Diff line number Diff line change
Expand Up @@ -130,4 +130,4 @@ message TransitiveFieldConstraint {
message: "mask.paths must not be empty",
expression: "has(this.paths)",
}];
}
}

0 comments on commit 44ff83f

Please sign in to comment.