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

Commit e99edac

Browse files
azroddmicheneau
authored andcommitted
fix: pathExpression missing in attributeIsDivisibleByAnInteger validator
1 parent 2058e4c commit e99edac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

int64validator/attribute_is_divisible_by_an_integer.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ func (validator attributeIsDivisibleByAnInteger) ValidateInt64(
3636
return
3737
}
3838

39-
paths, diags := req.Config.PathMatches(ctx, validator.PathExpression)
39+
paths, diags := req.Config.PathMatches(ctx, req.PathExpression.Merge(validator.PathExpression))
4040
res.Diagnostics.Append(diags...)
4141
if diags.HasError() {
4242
return

0 commit comments

Comments
 (0)