From cfc6d2d5b9ed9656165670e6ec262841aade3660 Mon Sep 17 00:00:00 2001 From: Stefan Majewsky Date: Wed, 1 Apr 2026 15:46:23 +0200 Subject: jsonmatch: add Irrelevant --- jsonmatch/machinery.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'jsonmatch/machinery.go') 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 -- cgit v1.2.3