aboutsummaryrefslogtreecommitdiff
path: root/jsonmatch/machinery.go
diff options
context:
space:
mode:
authorStefan Majewsky <majewsky@gmx.net>2026-04-01 15:46:23 +0200
committerStefan Majewsky <majewsky@gmx.net>2026-04-01 15:47:01 +0200
commitcfc6d2d5b9ed9656165670e6ec262841aade3660 (patch)
treebc495fc17377af70ae2b981d7fd93babad85559a /jsonmatch/machinery.go
parentca7ccbadbc19c2cb28f1b7edfcc845b9d7888adc (diff)
downloadgo-gg-cfc6d2d5b9ed9656165670e6ec262841aade3660.tar.gz
jsonmatch: add Irrelevantv1.6.0
Diffstat (limited to 'jsonmatch/machinery.go')
-rw-r--r--jsonmatch/machinery.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/jsonmatch/machinery.go b/jsonmatch/machinery.go
index 7f91f67..32930b6 100644
--- a/jsonmatch/machinery.go
+++ b/jsonmatch/machinery.go
@@ -146,6 +146,8 @@ func getDiffsForValue(path []pathElement, expected, actual any) []Diff {
return getDiffsForArray(path, downcasted, actual)
case capturedField:
return getDiffsForCapturedField(path, expected, actual)
+ case irrelevant:
+ return nil
case nil:
// this case needs to be handled separately because the code below
// cannot deal with reflect.TypeOf(expected) returning nil