diff options
| author | Stefan Majewsky <majewsky@gmx.net> | 2026-04-01 15:46:23 +0200 |
|---|---|---|
| committer | Stefan Majewsky <majewsky@gmx.net> | 2026-04-01 15:47:01 +0200 |
| commit | cfc6d2d5b9ed9656165670e6ec262841aade3660 (patch) | |
| tree | bc495fc17377af70ae2b981d7fd93babad85559a /jsonmatch/machinery.go | |
| parent | ca7ccbadbc19c2cb28f1b7edfcc845b9d7888adc (diff) | |
| download | go-gg-3f4b75ec1fbe9a1a018697da0c4b6f3ed98ee339.tar.gz | |
jsonmatch: add Irrelevantv1.6.0
Diffstat (limited to 'jsonmatch/machinery.go')
| -rw-r--r-- | jsonmatch/machinery.go | 2 |
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 |
