Skip to content
This repository was archived by the owner on Dec 27, 2024. It is now read-only.

Commit 6b0e629

Browse files
authored
fix: pathExpression missing in attribute NullIfAttributeIsOneOf validator (#57)
1 parent ada0563 commit 6b0e629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

internal/null_if_attribute_is_one_of.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (av NullIfAttributeIsOneOf) Validate(ctx context.Context, req NullIfAttribu
7676

7777
// Here attribute configuration is null or unknown, so we need to check if attribute in the path
7878
// is equal to one of the excepted values
79-
paths, diags := req.Config.PathMatches(ctx, av.PathExpression)
79+
paths, diags := req.Config.PathMatches(ctx, req.PathExpression.Merge(av.PathExpression))
8080
res.Diagnostics.Append(diags...)
8181
if diags.HasError() {
8282
return

0 commit comments

Comments
 (0)